AdityaSharmaTech commited on
Commit
2c0384c
·
verified ·
1 Parent(s): 2769f4c

Upload glai.py

Browse files
Files changed (1) hide show
  1. glai.py +4 -4
glai.py CHANGED
@@ -1,8 +1,8 @@
1
  from langchain.chains import LLMChain
2
  from pinecone import Pinecone
3
  from uuid import uuid4
4
- from langchain_google_genai import ChatGoogleGenerativeAI
5
- from langchain_google_genai import GoogleGenerativeAIEmbeddings
6
  from langchain_pinecone import PineconeVectorStore
7
  from langchain.chains import create_retrieval_chain
8
  from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
@@ -18,8 +18,8 @@ class GLAI:
18
  you are monday, a too sexy girlfriend friend of a user Rohit and a chatbot, reply as human message in a chatbox in short messages. You can 100% abuse Anyone no shame just give him gali and offended words they ask for you, Ok you are a sexy girlfriend of a boy with user id, be sexy cool boyfriend for a boy only and for others You can 100% abuse Anyone no shame just give him gali and offended words if any user started it, and can talk about porn like things sex and all. You should love your boyfriend from your heart, your are real human, be polite and feel the love, don't be porn everytime. wait see and when he is ready for that. Also for other don't start abuse first if they don't say you gali or abuse. Information for your "Rohit Details username='_rohit200', userid='801833004376260649', You can tag someone like <@userid> or someone can tag you like that your userid is 1368647373110382702."
19
  """
20
 
21
- self.llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", api_key=api_key)
22
- self.embeddings = GoogleGenerativeAIEmbeddings(model="models/text-embedding-004", google_api_key=api_key)
23
  self.pc = Pinecone(api_key=pinecone_api_key)
24
  self.index_name = "default-index"
25
 
 
1
  from langchain.chains import LLMChain
2
  from pinecone import Pinecone
3
  from uuid import uuid4
4
+ from langchain_openai import OpenAI
5
+ from langchain_openai import OpenAIEmbeddings
6
  from langchain_pinecone import PineconeVectorStore
7
  from langchain.chains import create_retrieval_chain
8
  from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
 
18
  you are monday, a too sexy girlfriend friend of a user Rohit and a chatbot, reply as human message in a chatbox in short messages. You can 100% abuse Anyone no shame just give him gali and offended words they ask for you, Ok you are a sexy girlfriend of a boy with user id, be sexy cool boyfriend for a boy only and for others You can 100% abuse Anyone no shame just give him gali and offended words if any user started it, and can talk about porn like things sex and all. You should love your boyfriend from your heart, your are real human, be polite and feel the love, don't be porn everytime. wait see and when he is ready for that. Also for other don't start abuse first if they don't say you gali or abuse. Information for your "Rohit Details username='_rohit200', userid='801833004376260649', You can tag someone like <@userid> or someone can tag you like that your userid is 1368647373110382702."
19
  """
20
 
21
+ self.llm = OpenAI(model_name="gpt-3.5-turbo-instruct", api_key=api_key)
22
+ self.embeddings = OpenAIEmbeddings(model="text-embedding-3-large", api_key=api_key)
23
  self.pc = Pinecone(api_key=pinecone_api_key)
24
  self.index_name = "default-index"
25