mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* refactor(typing): clear basedpyright Any errors in proxy utils, streaming and container paths * refactor(typing): type azure ai agents dispatch and responses guardrail stream fallback * refactor(typing): type guardrail content blocks, bitbucket config and ollama embedding payloads * refactor(typing): keep ollama embedding usage arguments type checked * fix(ollama): keep reported prompt token counts and drop the dead spend lookup Read Ollama's prompt_eval_count with the same lax integer conversion Usage applied before, so 5.0 and "5" still report 5 tokens and a list still fails. Drop get_generic_data's spend branch, which read a Prisma table that does not exist, and test that a streamed Responses guardrail fallback receives the response model * refactor(ollama): remove the unused embedding response type The embedding handler reads the response through require_get and TypeAdapter now, so OllamaEmbeddingResponse and its TypedDict imports had no users left |
||
|---|---|---|
| .. | ||
| count_tokens | ||
| __init__.py | ||
| test_openai_count_tokens_transformation.py | ||
| test_openai_responses_data_residency.py | ||
| test_openai_responses_guardrail_handler.py | ||
| test_openai_responses_guardrail_tool_merge.py | ||
| test_openai_responses_http.py | ||
| test_openai_responses_transformation.py | ||