Commit graph

113 commits

Author SHA1 Message Date
Krrish Dholakia
e73e9e12bc fix(vertex_httpx.py): support passing response_schema to gemini 2024-06-29 11:33:19 -07:00
Krrish Dholakia
4f32f283a3 fix(vertex_httpx.py): fix streaming for cloudflare proxy calls 2024-06-29 09:09:56 -07:00
Ishaan Jaff
7264113c25 vertex testing 2024-06-26 18:08:54 -07:00
Krrish Dholakia
8e6e5a6d37 fix(vertex_httpx.py): Return empty model response for content filter violations 2024-06-24 19:22:20 -07:00
Krrish Dholakia
97d33324df test: trigger new build 2024-06-20 21:42:42 -07:00
Krrish Dholakia
dfd5882c31 fix(vertex_httpx.py): allow passing extra headers
Closes https://github.com/BerriAI/litellm/pull/4327
2024-06-20 21:14:44 -07:00
Krrish Dholakia
d3a3146155 fix(vertex_httpx.py): support setting custom api base for vertex ai calls
Closes https://github.com/BerriAI/litellm/issues/4317
2024-06-20 16:33:37 -07:00
Krrish Dholakia
8da3e5ad66 test(test_amazing_vertex_completion.py): fix test 2024-06-19 19:25:45 -07:00
Krrish Dholakia
4c5f077bd3 fix(vertex_ai.py): check if message length > 0 before merging 2024-06-19 18:47:43 -07:00
Krrish Dholakia
933c3c845e fix(vertex_httpx.py): fix supports system message check for vertex_ai_beta
Fixes https://github.com/BerriAI/litellm/issues/4283
2024-06-19 13:17:22 -07:00
Krish Dholakia
0c2c02ba8d
Merge pull request #4266 from BerriAI/litellm_gemini_image_url
Support 'image url' to vertex ai / google ai studio gemini models
2024-06-18 20:39:25 -07:00
Krrish Dholakia
3546ab39d3 test: cleanup tests 2024-06-18 19:07:31 -07:00
Krrish Dholakia
f41c443abb fix(vertex_httpx.py): re-raise vertex content policy violation error
Fixes https://github.com/BerriAI/litellm/issues/4270
2024-06-18 19:00:35 -07:00
Krrish Dholakia
ae9f1a0e52 test: cleanup tests 2024-06-18 11:01:00 -07:00
Krrish Dholakia
3f7252c422 fix(support-passing-image-url-to-gemini-via-vertex-ai): Closes https://github.com/BerriAI/litellm/issues/4262 2024-06-18 10:55:58 -07:00
Krrish Dholakia
df753a8ab2 fix(cost_calculator.py): fix time import 2024-06-17 20:27:18 -07:00
Krrish Dholakia
9c4e6d85ed test: reduce vertex test to avoid exhausting limits 2024-06-12 22:32:45 -07:00
Ishaan Jaff
4bf33ef267 (ci/cd) run again 2024-06-12 22:26:15 -07:00
Ishaan Jaff
45aa59c017 fix vertex test 2024-06-12 22:22:16 -07:00
Krrish Dholakia
9213f69f60 test(test_amazing_vertex_completion.py): reduce vertex tests to avoid exhausting quota 2024-06-12 22:08:43 -07:00
Krrish Dholakia
42f326a164 fix(vertex_httpx.py): support json schema 2024-06-12 21:46:43 -07:00
Krish Dholakia
05e21441a6
Merge branch 'main' into litellm_vertex_completion_httpx 2024-06-12 21:19:22 -07:00
Krrish Dholakia
c426d75e91 fix(vertex_httpx.py): add function calling support to httpx route 2024-06-12 21:11:00 -07:00
Krrish Dholakia
995631bd39 fix(vertex_httpx.py): support async completion calls 2024-06-12 20:15:03 -07:00
Krrish Dholakia
3b913443fe feat(vertex_httpx.py): Moving to call vertex ai via httpx (instead of their sdk). Allows us to support all their api updates. 2024-06-12 16:47:00 -07:00
Ishaan Jaff
37d14a5e8c test_vertexai_embedding_embedding_latest 2024-06-12 11:00:27 -07:00
Ishaan Jaff
8dffc8620c test test_vertexai_embedding_embedding_latest 2024-06-12 10:13:48 -07:00
Ishaan Jaff
b9f50d83c4 test - support vertex ai ertexai_embedding_embedding 2024-06-12 09:32:32 -07:00
Ishaan Jaff
3af2d7846e add text-embedding-004 2024-06-12 08:31:37 -07:00
Krrish Dholakia
5f99938cb8 test(test_amazing_vertex_completion.py): add retries for 'Content has no parts.' error in vertex test 2024-06-03 14:06:36 -07:00
Krrish Dholakia
281906ff33 fix(vertex_ai.py): handle nested content dictionary for assistant message
openai allows the assistant content message to also be a list of dictionaries, handle that
2024-05-24 22:47:47 -07:00
Krrish Dholakia
45c46a84d0 fix(vertex_ai.py): support passing system instructions to vertex ai 2024-05-20 06:18:19 -07:00
Krrish Dholakia
65aacc0c1a fix(vertex_ai.py): use chat_messages_with_history for async + streaming calls 2024-05-19 12:30:24 -07:00
Krrish Dholakia
f9ab72841a fix(vertex_ai.py): passing all tests on 'test_amazing_vertex_completion.py 2024-05-19 12:22:21 -07:00
Krrish Dholakia
a2c66ed4fb fix(vertex_ai.py): support passing in result of tool call to vertex
Fixes https://github.com/BerriAI/litellm/issues/3709
2024-05-19 11:34:07 -07:00
Ishaan Jaff
ee98074273 ci/cd run again 2024-05-16 18:35:43 -07:00
Ishaan Jaff
729e34ffea (ci/cd) fix - assert len(completed_str) 2024-05-16 18:06:48 -07:00
Ishaan Jaff
f138c15859 (ci/cd) fix test_vertex_ai_stream 2024-05-15 16:32:40 -07:00
Krrish Dholakia
4e30d7cf5e build(model_prices_and_context_window.json): add gemini 1.5 flash model info 2024-05-14 17:30:31 -07:00
Krrish Dholakia
39e4927752 fix(utils.py): fix vertex ai function calling + streaming
Completes https://github.com/BerriAI/litellm/issues/3147
2024-05-13 12:32:39 -07:00
Krrish Dholakia
04ae285001 fix(vertex_ai.py): support tool call list response async completion 2024-05-13 10:42:31 -07:00
Krrish Dholakia
94f3d361b0 fix(vertex_ai.py): fix list tool call responses
Closes https://github.com/BerriAI/litellm/issues/3147
2024-05-10 20:05:58 -07:00
Krrish Dholakia
9a31f3d3d9 fix(main.py): support env var 'VERTEX_PROJECT' and 'VERTEX_LOCATION' 2024-05-10 07:57:56 -07:00
Krrish Dholakia
2dd9d2f704 test(test_amazing_vertex_completion.py): try-except api errors 2024-05-03 10:09:57 -07:00
Krrish Dholakia
3cc82f558e fix(utils.py): add exception mapping for gemini error 2024-04-30 14:17:10 -07:00
Krrish Dholakia
5f8d88d363 fix(vertex_ai.py): handle stream=false
also adds unit testing for vertex ai calls with langchain
2024-04-25 13:59:37 -07:00
Krrish Dholakia
72ac0d26e3 test: fix test 2024-04-23 16:56:48 -07:00
Ishaan Jaff
1fea2b0397 (ci/cd) run again 2024-04-21 16:50:11 -07:00
Krrish Dholakia
5811d21094 test(test_amazing_vertex_completion.py): fix gemini tool calling test 2024-04-19 19:39:38 -07:00
Ishaan Jaff
c903b44849 (ci/cd) vertexai - skip 429 errors 2024-04-18 21:27:22 -07:00