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.17k stars 1.68k forks source link

[Bug]: numpydoc must be either explicit litellm dependency or eliminated #6810

Closed antonkulaga closed 4 days ago

antonkulaga commented 6 days ago

What happened?

I noticed that in some cases litellm uses NumpyDocString but it is not mandatory dependencies in litellm pip package. Please, either drop numpydoc or make it mandatory

Relevant log output

File "/home/antonkulaga/sources/just-agents/.micromamba/envs/just-agents/lib/python3.11/site-packages/litellm/utils.py", line 4722, in function_to_dict
    numpydoc = NumpyDocString(docstring)

Twitter / LinkedIn details

No response

krrishdholakia commented 4 days ago

it's used in a helper function called function_to_dict

this function is not used in the critical path of an llm api call, and is therefore not a mandatory requirement for using litellm.