Skip to content

Commit 63c61e6

Browse files
davidfir3柯仕锋
and
柯仕锋
authored
添加gemini-2.0-flash (#2180)
Co-authored-by: 柯仕锋 <[email protected]>
1 parent 82aac97 commit 63c61e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

request_llms/bridge_all.py

+9
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,15 @@ def decode(self, *args, **kwargs):
530530
"tokenizer": tokenizer_gpt35,
531531
"token_cnt": get_token_num_gpt35,
532532
},
533+
"gemini-2.0-flash": {
534+
"fn_with_ui": genai_ui,
535+
"fn_without_ui": genai_noui,
536+
"endpoint": gemini_endpoint,
537+
"has_multimodal_capacity": True,
538+
"max_token": 1024 * 204800,
539+
"tokenizer": tokenizer_gpt35,
540+
"token_cnt": get_token_num_gpt35,
541+
},
533542

534543
# cohere
535544
"cohere-command-r-plus": {

0 commit comments

Comments
 (0)