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
13.55k stars 1.59k forks source link

[Feature]: Use poetry within circleci #1364

Open bufferoverflow opened 10 months ago

bufferoverflow commented 10 months ago

The Feature

There are bunch of manual pip installs, e.g. https://github.com/BerriAI/litellm/blob/main/.circleci/config.yml#L26:L42

As circleci supports poetry as well I suggest using poetry, see https://circleci.com/developer/orbs/orb/circleci/python#usage-work-with-poetry and then run the linter and tests using poetry:

poetry run flake8
poetry run black --check .
poetry run pytest .

Some dependencies might be missing within https://github.com/BerriAI/litellm/blob/main/pyproject.toml but I think its worth to use poetry consequently.

Motivation, pitch

consistent dependency management is the thing

Twitter / LinkedIn details

No response

ishaan-jaff commented 10 months ago

addressing this here: https://github.com/BerriAI/litellm/pull/1365