Skip to content

Commit

Permalink
change gemini defaults from 2.0-flash-exp to 2.0-flash
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Feb 6, 2025
1 parent a3e767d commit e3ef79a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions defog_utils/utils_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ async def chat_together_async(

def chat_gemini(
messages: List[Dict[str, str]],
model: str = "gemini-2.0-flash-exp",
model: str = "gemini-2.0-flash",
max_completion_tokens: int = 8192,
temperature: float = 0.0,
stop: List[str] = [],
Expand Down Expand Up @@ -471,7 +471,7 @@ def chat_gemini(

async def chat_gemini_async(
messages: List[Dict[str, str]],
model: str = "gemini-2.0-flash-exp",
model: str = "gemini-2.0-flash",
max_completion_tokens: int = 8192,
temperature: float = 0.0,
stop: List[str] = [],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_utils_multi_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def test_simple_chat_async(self):
"meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
# "o1-mini", --o1-mini seems to be having issues, and o3-mini will be out soon anyway. so leaving out for now
"o1",
"gemini-2.0-flash-exp",
"gemini-2.0-flash",
# "deepseek-chat",
# "deepseek-reasoner"
]
Expand Down Expand Up @@ -217,7 +217,7 @@ async def test_sql_chat_async(self):
"meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
# "o1-mini", --o1-mini seems to be having issues, and o3-mini will be out soon anyway. so leaving out for now
"o1",
"gemini-2.0-flash-exp",
"gemini-2.0-flash",
# "deepseek-chat",
# "deepseek-reasoner"
]
Expand Down Expand Up @@ -261,7 +261,7 @@ async def test_sql_chat_structured_async(self):
models = [
"gpt-4o",
"o1",
"gemini-2.0-flash-exp",
"gemini-2.0-flash",
]
for model in models:
response = await chat_async(
Expand Down

0 comments on commit e3ef79a

Please sign in to comment.