Skip to content

Commit

Permalink
Merge pull request #19 from EveryFine/dev
Browse files Browse the repository at this point in the history
update model to gpt-4o-mini
  • Loading branch information
EveryFine authored Sep 11, 2024
2 parents d5c88e0 + 2fa39fa commit 4d49aa1
Show file tree
Hide file tree
Showing 5 changed files with 949 additions and 1,629 deletions.
2 changes: 1 addition & 1 deletion GeniusChatbots/pages/1_a_class_chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def create_chatbot():
global st
model_name = "gpt-3.5-turbo"
model_name = "gpt-4o-mini"
# model_name = "gpt-4o"
openai_api_key = os.getenv("OPENAI_API_KEY")
llm_client = OpenAIClient(model_name=model_name, openai_api_key=openai_api_key)
Expand Down
2 changes: 1 addition & 1 deletion GeniusChatbots/pages/2_b_class_chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_chatbot():
"""
)
model_name = "gpt-3.5-turbo"
model_name = "gpt-4o-mini" ## gpt-4o-mini, gpt-3.5-turbo
openai_api_key = os.getenv("OPENAI_API_KEY")
msgs = StreamlitChatMessageHistory()
memory = ConversationBufferMemory(
Expand Down
2 changes: 1 addition & 1 deletion GeniusChatbots/pages/3_rag_website_chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def create_chatbot():
The **AG Website Chatbot** leverages langchain's RAG technology to enable dynamic conversations about website content. Users simply input a URL and the chatbot provides immediate, context-aware insights, facilitating a deeper understanding of web content.
"""
)
model_name = "gpt-3.5-turbo"
model_name = "gpt-4o-mini"
openai_api_key = os.getenv("OPENAI_API_KEY")
with st.sidebar:
website_url = st.text_input("Website URL")
Expand Down
2 changes: 1 addition & 1 deletion GeniusChatbots/pages/4_rag_sql_chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_chatbot():
users to retrieve and manage data efficiently. """
)

model_name = "gpt-3.5-turbo"
model_name = "gpt-4o-mini"
openai_api_key = os.getenv("OPENAI_API_KEY")
uri = get_uri()
uri_invalid = False
Expand Down
Loading

0 comments on commit 4d49aa1

Please sign in to comment.