Commit graph

26 commits

Author SHA1 Message Date
Krish Dholakia
91c918fd70 LiteLLM Minor Fixes and Improvements (09/12/2024) (#5658)
* fix(factory.py): handle tool call content as list

Fixes https://github.com/BerriAI/litellm/issues/5652

* fix(factory.py): enforce stronger typing

* fix(router.py): return model alias in /v1/model/info and /v1/model_group/info

* fix(user_api_key_auth.py): move noisy warning message to debug

cleanup logs

* fix(types.py): cleanup pydantic v2 deprecated param

Fixes https://github.com/BerriAI/litellm/issues/5649

* docs(gemini.md): show how to pass inline data to gemini api

Fixes https://github.com/BerriAI/litellm/issues/5674
2024-09-12 23:04:06 -07:00
Krish Dholakia
52849e6422 LiteLLM Minor Fixes and Improvements (09/07/2024) (#5580)
* fix(litellm_logging.py): set completion_start_time_float to end_time_float if none

Fixes https://github.com/BerriAI/litellm/issues/5500

* feat(_init_.py): add new 'openai_text_completion_compatible_providers' list

Fixes https://github.com/BerriAI/litellm/issues/5558

Handles correctly routing fireworks ai calls when done via text completions

* fix: fix linting errors

* fix: fix linting errors

* fix(openai.py): fix exception raised

* fix(openai.py): fix error handling

* fix(_redis.py): allow all supported arguments for redis cluster (#5554)

* Revert "fix(_redis.py): allow all supported arguments for redis cluster (#5554)" (#5583)

This reverts commit f2191ef4cb.

* fix(router.py): return model alias w/ underlying deployment on router.get_model_list()

Fixes https://github.com/BerriAI/litellm/issues/5524#issuecomment-2336410666

* test: handle flaky tests

---------

Co-authored-by: Jonas Dittrich <58814480+Kakadus@users.noreply.github.com>
2024-09-09 18:54:17 -07:00
Krish Dholakia
0595d03116 security - Prevent sql injection in /team/update query (#5513)
* fix(team_endpoints.py): replace `.get_data()` usage with prisma interface

Prevent sql injection in `/team/update` query

Fixes https://huntr.com/bounties/a4f6d357-5b44-4e00-9cac-f1cc351211d2

* fix(vertex_ai_non_gemini.py): handle message being a pydantic model
2024-09-04 16:03:02 -07:00
Krrish Dholakia
3b72293ef5 test(test_function_calling.py): fix test 2024-08-26 12:18:50 -07:00
Krrish Dholakia
2dd616bad0 fix(ollama_chat.py): fix passing assistant message with tool call param
Fixes https://github.com/BerriAI/litellm/issues/5319
2024-08-22 10:00:03 -07:00
Krrish Dholakia
6ad4207328 fix: rerun ci/cd 2024-08-21 22:28:35 -07:00
Krrish Dholakia
98d4f458aa test(test_function_calling.py): remove redundant gemini test (causing ratelimit errors) 2024-08-21 21:48:14 -07:00
Krrish Dholakia
3fa4e5971f test: test_function_calling.py 2024-08-21 21:12:15 -07:00
Krrish Dholakia
07bd92b527 fix(vertex_httpx.py): Fix tool calling with empty param list
Fixes https://github.com/BerriAI/litellm/issues/5055
2024-08-21 09:03:34 -07:00
Krrish Dholakia
a2b1effa64 fix(factory.py): fix merging consecutive tool blocks for bedrock converse
Fixes https://github.com/BerriAI/litellm/issues/5277
2024-08-20 08:53:34 -07:00
Ishaan Jaff
e904db5222 fix function calling mistral large latest 2024-05-15 16:05:17 -07:00
Ishaan Jaff
cf4420291d fix - test mistral/large _parallel_function_call 2024-05-15 14:31:00 -07:00
Krrish Dholakia
96336cdd49 fix(openai.py): creat MistralConfig with response_format mapping for mistral api 2024-05-13 13:29:58 -07:00
Krrish Dholakia
5aec5fb4c6 test(test_function_calling.py): remove flaky groq test 2024-04-19 16:41:23 -07:00
Krrish Dholakia
10d65f0676 test(test_function_calling.py): handle for when model returns a text response 2024-04-17 18:32:34 -07:00
Ishaan Jaff
2a54d9a6ec fix test groq function call 2024-04-15 08:40:39 -07:00
Ishaan Jaff
82b050dcc8 test - groq tool calling 2024-04-15 08:13:05 -07:00
ishaan-jaff
0b51ef5e31 (fix) test_function_caling.py 2024-02-28 18:07:22 -08:00
ishaan-jaff
3e111a2ab2 (feat) track mistral model supports function calling 2024-02-28 17:15:50 -08:00
Krrish Dholakia
4ba18f9932 fix(utils.py): fix streaming logic 2024-02-26 14:26:58 -08:00
Krrish Dholakia
79978c44ba refactor: add black formatting 2023-12-25 14:11:20 +05:30
Krrish Dholakia
622eaf4a21 fix(utils.py): fix parallel tool calling when streaming 2023-11-29 10:56:21 -08:00
ishaan-jaff
e10c2d0bda (test) tool/function calling + streaming 2023-11-18 16:23:29 -08:00
ishaan-jaff
b31368ac2f (test) function calling 2023-11-18 15:15:02 -08:00
ishaan-jaff
1ba32368ef (test) parallel tool calling 2023-11-17 17:03:24 -08:00
ishaan-jaff
6d3248e17f (test) parallel function calling 2023-11-17 15:51:27 -08:00