litellm/tests/unit/llms/openai/responses
Mateo Wang 84aedb7a40
refactor(typing): clear 21 basedpyright Any errors across 15 files (#55751)
* 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
2026-12-02 19:50:42 -08:00
..
count_tokens fix(anthropic): map /v1/messages fields onto OpenAI Responses equivalents or reject them (#54173) 2026-11-25 19:30:01 +00:00
__init__.py
test_openai_count_tokens_transformation.py fix(responses): drop Gemini thought signatures from items replayed to non-Gemini providers (#55725) 2026-12-02 20:49:33 +00:00
test_openai_responses_data_residency.py feat(openai): bill gov.api.openai.com FedRAMP endpoint with 1.1x uplift (#49951) 2026-11-04 08:57:42 -08:00
test_openai_responses_guardrail_handler.py refactor(typing): clear 21 basedpyright Any errors across 15 files (#55751) 2026-12-02 19:50:42 -08:00
test_openai_responses_guardrail_tool_merge.py fix(responses): keep sent tool names in cold storage replay and guardrail rewrites (#54240) 2026-11-25 05:41:32 +00:00
test_openai_responses_http.py fix(responses): preserve typed parts when logprobs is omitted (#48686) 2026-10-27 18:33:39 -07:00
test_openai_responses_transformation.py fix(anthropic): map /v1/messages fields onto OpenAI Responses equivalents or reject them (#54173) 2026-11-25 19:30:01 +00:00