Ollama Chat - parse tool calls on streaming (#11171)

* fix(user_api_key_auth.py): fix else block

Fixes https://github.com/BerriAI/litellm/issues/11170

* refactor(ollama/chat): refactor to base config pattern

easier to maintain fixes

* fix(ollama/chat): support tool call parsing on streaming

Closes https://github.com/BerriAI/litellm/issues/11104

* test: update import location

* fix: cleanup unused import

* fix: fix ruff check error

* test: update import

* test: update test on ci

* ci: cleanup

* fix: fix chekc

* fix: fix api key check order

* test: fix import

* ci: fix script

* test: fix imports

* fix: fix tests
This commit is contained in:
Krish Dholakia
2025-05-27 16:14:49 -07:00
committed by GitHub
parent 64096aeb1e
commit 4c82dd9b27
17 changed files with 537 additions and 277 deletions
@@ -31,7 +31,7 @@ def get_all_functions_called_in_tests(base_dir):
specifically in files containing the word 'router'.
"""
called_functions = set()
test_dirs = ["local_testing", "router_unit_tests", "litellm"]
test_dirs = ["local_testing", "router_unit_tests", "test_litellm"]
for test_dir in test_dirs:
dir_path = os.path.join(base_dir, test_dir)