Commit graph

131 commits

Author SHA1 Message Date
Krrish Dholakia
015d1a4fd9 fix(vertex_httpx.py): google search grounding fix 2024-07-14 08:06:17 -07:00
Krrish Dholakia
f98c819d4b fix(vertex_httpx.py): fix gtool handling 2024-07-09 08:01:49 -07:00
Krrish Dholakia
71ad281c0a feat(vertex_httpx.py): add support for gemini 'grounding'
Adds support for https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/grounding#rest
2024-07-08 21:37:07 -07:00
Krrish Dholakia
f10e0e096e test(test_amazing_vertex_completion.py): pass pdf as base64 to vertex ai 2024-07-08 10:01:47 -07:00
Krrish Dholakia
d0862697b8 fix(vertex_httpx.py): fix supported vertex params 2024-07-04 21:17:52 -07:00
Krrish Dholakia
cceb7b59db fix(cohere.py): fix message parsing to handle tool calling correctly 2024-07-04 11:13:07 -07:00
Krish Dholakia
750b10bd03 Merge pull request #4522 from andrewmjc/matchingToolMessageSpec
[Bug Fix] Use OpenAI Tool Response Spec When Converting To Gemini/VertexAI Tool Response
2024-07-04 08:03:38 -07:00
Krrish Dholakia
dca952f117 fix: linting fixes 2024-07-03 21:55:00 -07:00
Krish Dholakia
06c6c65d2a Merge branch 'main' into litellm_anthropic_tool_calling_streaming_fix 2024-07-03 20:43:51 -07:00
Krrish Dholakia
4a6471e075 fix(utils.py): fix vertex anthropic streaming 2024-07-03 18:43:46 -07:00
Krish Dholakia
4e1b247c1d Revert "fix(vertex_anthropic.py): Vertex Anthropic tool calling - native params " 2024-07-03 17:55:37 -07:00
Krrish Dholakia
46800ba20a fix(vertex_anthropic.py): Updates the vertex anthropic endpoint to do tool calling with the anthropic api params 2024-07-03 15:28:31 -07:00
andrewmjc
4fc03fbb70 unit test 2024-07-03 12:23:26 -06:00
Krrish Dholakia
c7555b360f test(test_amazing_vertex_completion.py): reduce vertex tests - quota exhaustion 2024-06-29 19:58:01 -07:00
Krrish Dholakia
b30daadeed fix(utils.py): add 'enforce_validation' param 2024-06-29 19:57:41 -07:00
Krrish Dholakia
39833762cf fix(vertex_ai_anthropic.py): support pre-filling "{" for json mode 2024-06-29 18:54:10 -07:00
Krrish Dholakia
8ba78aae77 fix(utils.py): support json schema validation 2024-06-29 15:05:52 -07:00
Krrish Dholakia
ad6625ae47 feat(vertex_httpx.py): support the 'response_schema' param for older vertex ai models - pass as prompt (user-controlled)
if 'response_schema' is not supported for vertex model (e.g. gemini-1.5-flash) pass in prompt
2024-06-29 13:25:27 -07:00
Krrish Dholakia
d9177f189e fix(vertex_httpx.py): support passing response_schema to gemini 2024-06-29 11:33:19 -07:00
Krrish Dholakia
510826c457 fix(vertex_httpx.py): fix streaming for cloudflare proxy calls 2024-06-29 09:09:56 -07:00
Ishaan Jaff
21314e817a vertex testing 2024-06-26 18:08:54 -07:00
Krrish Dholakia
cdf56dd320 fix(vertex_httpx.py): Return empty model response for content filter violations 2024-06-24 19:22:20 -07:00
Krrish Dholakia
7d0278d6da test: trigger new build 2024-06-20 21:42:42 -07:00
Krrish Dholakia
c88c3002a4 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
1f87f45709 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
7e26d3f011 test(test_amazing_vertex_completion.py): fix test 2024-06-19 19:25:45 -07:00
Krrish Dholakia
e352f954b0 fix(vertex_ai.py): check if message length > 0 before merging 2024-06-19 18:47:43 -07:00
Krrish Dholakia
0a96865c48 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
4c5eb58fc9 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
5ad0359d85 test: cleanup tests 2024-06-18 19:07:31 -07:00
Krrish Dholakia
71e882f4a2 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
9953502613 test: cleanup tests 2024-06-18 11:01:00 -07:00
Krrish Dholakia
f745245ad5 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
21878d9ee7 fix(cost_calculator.py): fix time import 2024-06-17 20:27:18 -07:00
Krrish Dholakia
c9a6404263 test: reduce vertex test to avoid exhausting limits 2024-06-12 22:32:45 -07:00
Ishaan Jaff
d2ec0a66dd (ci/cd) run again 2024-06-12 22:26:15 -07:00
Ishaan Jaff
4379a35067 fix vertex test 2024-06-12 22:22:16 -07:00
Krrish Dholakia
a84021c848 test(test_amazing_vertex_completion.py): reduce vertex tests to avoid exhausting quota 2024-06-12 22:08:43 -07:00
Krrish Dholakia
ab4b1d931b fix(vertex_httpx.py): support json schema 2024-06-12 21:46:43 -07:00
Krish Dholakia
50c74fce49 Merge branch 'main' into litellm_vertex_completion_httpx 2024-06-12 21:19:22 -07:00
Krrish Dholakia
e60b0e96e4 fix(vertex_httpx.py): add function calling support to httpx route 2024-06-12 21:11:00 -07:00
Krrish Dholakia
afebf867f6 fix(vertex_httpx.py): support async completion calls 2024-06-12 20:15:03 -07:00
Krrish Dholakia
29169b3039 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
e3aa887f95 test_vertexai_embedding_embedding_latest 2024-06-12 11:00:27 -07:00
Ishaan Jaff
e525dd2226 test test_vertexai_embedding_embedding_latest 2024-06-12 10:13:48 -07:00
Ishaan Jaff
1255c154bb test - support vertex ai ertexai_embedding_embedding 2024-06-12 09:32:32 -07:00
Ishaan Jaff
f76612e4d6 add text-embedding-004 2024-06-12 08:31:37 -07:00
Krrish Dholakia
6441a1c398 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
945162253c 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
9e1a65c32a fix(vertex_ai.py): support passing system instructions to vertex ai 2024-05-20 06:18:19 -07:00