Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(ci): handle inline table in pyproject.toml for litellm-proxy-extras version check (#22414)

Ishaan Jaffccf2b7b74683
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4fcc461a3f6..c9407162649 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3886,7 +3886,7 @@ jobs:
command: |
cd ~/project
# Check pyproject.toml
- CURRENT_VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['dependencies']['litellm-proxy-extras'].split('\"')[1])")
+ CURRENT_VERSION=$(python -c "import toml; dep = toml.load('pyproject.toml')['tool']['poetry']['dependencies']['litellm-proxy-extras']; print(dep['version'] if isinstance(dep, dict) else dep)")
if [ "$CURRENT_VERSION" != "$NEW_VERSION" ]; then
echo "Error: Version in pyproject.toml ($CURRENT_VERSION) doesn't match new version ($NEW_VERSION)"
exit 1