BerriAI / litellm

Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, Groq]
https://docs.litellm.ai/docs/
Other
14.07k stars 1.66k forks source link

LiteLLM Minor Fixes & Improvements (11/21/2024) #6837

Closed krrishdholakia closed 12 hours ago

krrishdholakia commented 1 day ago

Title

Relevant issues

Fixes https://github.com/BerriAI/litellm/issues/6812 Groq doesn't support streaming when response_format is set Closes https://github.com/BerriAI/litellm/issues/6845 Closes https://github.com/BerriAI/litellm/issues/6801 Closes https://github.com/BerriAI/litellm/issues/6807 Fixes https://github.com/BerriAI/litellm/issues/6848 Fixes https://github.com/BerriAI/litellm/issues/6833

Type

๐Ÿ†• New Feature ๐Ÿ› Bug Fix ๐Ÿงน Refactoring ๐Ÿ“– Documentation ๐Ÿš„ Infrastructure โœ… Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

Description by Korbit AI

What change is being made?

Refactor the FunctionCall structure by simplifying the creation and restructuring of arguments dictionaries across litellm and update associated tests to handle tool calls with no arguments.

Why are these changes being made?

These changes are made to streamline code by eliminating unnecessary structures like Field and FunctionCallArgs, simplifying how function calls are constructed. This refactor enhances the maintainability and readability of the function call code. Additionally, the updates to the test cases ensure that functionality, such as handling tool calls with no arguments (as per GitHub issue #6833), is covered by testing to prevent future regressions.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

vercel[bot] commented 1 day ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
litellm โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Nov 21, 2024 8:24pm