From 4e30d7cf5ec9ced3d3bf12d1c2c0094616543b1a Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 14 May 2024 17:30:31 -0700 Subject: [PATCH] build(model_prices_and_context_window.json): add gemini 1.5 flash model info --- ...model_prices_and_context_window_backup.json | 18 ++++++++++++++++++ .../tests/test_amazing_vertex_completion.py | 2 +- model_prices_and_context_window.json | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 0a262e3108..10801e9c18 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -1110,6 +1110,24 @@ "supports_tool_choice": true, "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#foundation_models" }, + "gemini-1.5-flash-preview-0514": { + "max_tokens": 8192, + "max_input_tokens": 1000000, + "max_output_tokens": 8192, + "max_images_per_prompt": 3000, + "max_videos_per_prompt": 10, + "max_video_length": 1, + "max_audio_length_hours": 8.4, + "max_audio_per_prompt": 1, + "max_pdf_size_mb": 30, + "input_cost_per_token": 0, + "output_cost_per_token": 0, + "litellm_provider": "vertex_ai-language-models", + "mode": "chat", + "supports_function_calling": true, + "supports_vision": true, + "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#foundation_models" + }, "gemini-1.5-pro-preview-0215": { "max_tokens": 8192, "max_input_tokens": 1000000, diff --git a/litellm/tests/test_amazing_vertex_completion.py b/litellm/tests/test_amazing_vertex_completion.py index c58541a7d0..ad3fb3cc3e 100644 --- a/litellm/tests/test_amazing_vertex_completion.py +++ b/litellm/tests/test_amazing_vertex_completion.py @@ -508,7 +508,7 @@ def test_gemini_pro_vision(): litellm.set_verbose = True litellm.num_retries = 3 resp = litellm.completion( - model="vertex_ai/gemini-pro-vision", + model="vertex_ai/gemini-1.5-flash-preview-0514", messages=[ { "role": "user", diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 0a262e3108..10801e9c18 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -1110,6 +1110,24 @@ "supports_tool_choice": true, "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#foundation_models" }, + "gemini-1.5-flash-preview-0514": { + "max_tokens": 8192, + "max_input_tokens": 1000000, + "max_output_tokens": 8192, + "max_images_per_prompt": 3000, + "max_videos_per_prompt": 10, + "max_video_length": 1, + "max_audio_length_hours": 8.4, + "max_audio_per_prompt": 1, + "max_pdf_size_mb": 30, + "input_cost_per_token": 0, + "output_cost_per_token": 0, + "litellm_provider": "vertex_ai-language-models", + "mode": "chat", + "supports_function_calling": true, + "supports_vision": true, + "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#foundation_models" + }, "gemini-1.5-pro-preview-0215": { "max_tokens": 8192, "max_input_tokens": 1000000,