Skip to content

Commit 0d238c0

Browse files
authored
Support Gemini 2 Flash (#87)
1 parent 9054e4a commit 0d238c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dailalib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.16.2"
1+
__version__ = "3.17.0"
22

33
import os
44
# stop LiteLLM from querying at all to the remote server

dailalib/api/litellm/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"gpt-4o-mini": 16_000,
1010
"gpt-4-turbo": 128_000,
1111
"claude-3-5-sonnet-20240620": 200_000,
12-
"gemini/gemini-pro": 12_288,
13-
"vertex_ai_beta/gemini-pro": 12_288,
12+
"gemini/gemini-2.0-flash": 1_000_000,
13+
"vertex_ai_beta/gemini-2.0-flash": 1_000_000,
1414
# perplex is on legacy mode :(
1515
"perplexity/llama-3.1-sonar-small-128k-online": 127_072,
1616
"perplexity/llama-3.1-sonar-medium-128k-online": 127_072,
@@ -24,8 +24,8 @@
2424
"gpt-4o-mini": {"prompt_price": 0.150, "completion_price": 0.600},
2525
"gpt-4-turbo": {"prompt_price": 10, "completion_price": 30},
2626
"claude-3.5-sonnet-20240620": {"prompt_price": 3, "completion_price": 15},
27-
"gemini/gemini-pro": {"prompt_price": 0.150, "completion_price": 0.600},
28-
"vertex_ai_beta/gemini-pro": {"prompt_price": 0.150, "completion_price": 0.600},
27+
"gemini/gemini-2.0-flash": {"prompt_price": 0.10, "completion_price": 0.4},
28+
"vertex_ai_beta/gemini-2.0-flash": {"prompt_price": 0.10, "completion_price": 0.4},
2929
# perplex is on legacy mode not available from 02/22/25:(
3030
"perplexity/llama-3.1-sonar-small-128k-online": {"prompt_price": 0.150, "completion_price": 0.600},
3131
"perplexity/llama-3.1-sonar-large-128k-online": {"prompt_price": 0.150, "completion_price": 0.600},

0 commit comments

Comments
 (0)