Skip to content

Commit

Permalink
chore(freestream): Add GPT-4o Mini
Browse files Browse the repository at this point in the history
Updated the OpenAI model version from "GPT-3.5 Turbo" to "GPT-4o Mini" in the ChatOpenAI dictionary entries for consistency and accuracy across the project. Also incremented the project version in pyproject.toml from 4.4.1 to 4.4.2.
  • Loading branch information
Daethyra committed Jul 18, 2024
1 parent 0118405 commit ab7b3a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions freestream/pages/1_💬_Curie.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@

# Create dictionaries with keys to chat model classes
openai_models = {
"GPT-3.5 Turbo": ChatOpenAI( # Define a dictionary entry for the "ChatOpenAI GPT-3.5 Turbo" model
model="gpt-3.5-turbo", # Set the OpenAI model name
"GPT-4o Mini": ChatOpenAI( # Define a dictionary entry for the "ChatOpenAI GPT-3.5 Turbo" model
model="gpt-4o-mini", # Set the OpenAI model name
openai_api_key=openai_api_key, # Set the OpenAI API key from the Streamlit secrets manager
temperature=temperature_slider, # Set the temperature for the model's responses using the sidebar slider
streaming=True, # Enable streaming responses for the model
Expand Down
4 changes: 2 additions & 2 deletions freestream/pages/2_🤖_RAGbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@

# Create dictionaries with keys to chat model classes
openai_models = {
"GPT-3.5 Turbo": ChatOpenAI( # Define a dictionary entry for the "ChatOpenAI GPT-3.5 Turbo" model
model="gpt-3.5-turbo", # Set the OpenAI model name
"GPT-4o Mini": ChatOpenAI( # Define a dictionary entry for the "ChatOpenAI GPT-3.5 Turbo" model
model="gpt-4o-mini", # Set the OpenAI model name
openai_api_key=openai_api_key, # Set the OpenAI API key from the Streamlit secrets manager
temperature=temperature_slider, # Set the temperature for the model's responses using the sidebar slider
streaming=True, # Enable streaming responses for the model
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "FreeStream"
version = "4.4.1"
version = "4.4.2"
description = "Template repository for building chatbots."
authors = ["Daethyra <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit ab7b3a7

Please sign in to comment.