Skip to content

Commit

Permalink
fix(main.py): trigger new build
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Dec 4, 2024
1 parent e74b35f commit 07dbe64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1294,15 +1294,16 @@ jobs:
cp model_prices_and_context_window.json litellm/model_prices_and_context_window_backup.json
- run:
name: Check if litellm dir was updated or if pyproject.toml was modified
name: Check if litellm dir, tests dir, or pyproject.toml was modified
command: |
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep -E 'pyproject\.toml|litellm/')" ]; then
echo "litellm updated"
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep -E 'pyproject\.toml|litellm/|tests/')" ]; then
echo "litellm, tests, or pyproject.toml updated"
else
echo "No changes to litellm or pyproject.toml. Skipping PyPI publish."
echo "No changes to litellm, tests, or pyproject.toml. Skipping PyPI publish."
circleci step halt
fi
- run:
name: Checkout code
command: git checkout $CIRCLE_SHA1
Expand Down
1 change: 0 additions & 1 deletion litellm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,6 @@ def completion( # type: ignore # noqa: PLR0915
or get_secret("CLARIFAI_API_BASE")
or "https://api.clarifai.com/v2"
)

custom_prompt_dict = custom_prompt_dict or litellm.custom_prompt_dict
model_response = clarifai.completion(
model=model,
Expand Down
6 changes: 4 additions & 2 deletions litellm/model_prices_and_context_window_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_response_schema": true,
"supports_vision": true
"supports_vision": true,
"supports_prompt_caching": true
},
"azure/gpt-4o-2024-11-20": {
"max_tokens": 16384,
Expand Down Expand Up @@ -795,7 +796,8 @@
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_response_schema": true,
"supports_vision": true
"supports_vision": true,
"supports_prompt_caching": true
},
"azure/global-standard/gpt-4o-2024-11-20": {
"max_tokens": 16384,
Expand Down

0 comments on commit 07dbe64

Please sign in to comment.