mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
* fix(completions): send fields the OpenAI SDK has no keyword for in the request body A /v1/completions request carrying response_format, tools, tool_choice, functions, function_call or top_logprobs failed with a 500 TypeError before anything was sent, because every request field was passed to the SDK's completions.create() as a keyword. Those fields now travel in extra_body, so the provider receives them and its own answer comes back. Fixes #47951 * test(completions): type the monkeypatch fixture parameter * fix(completions): send body-only fields on Azure text completions and clear the lint gates Azure text completions called the SDK the same way, so response_format, tools and tool_choice hit the same TypeError there. They now go in the request body too. The helper returns an Any-valued dict because that is the only thing the SDK's typed keywords accept from a splatted dict, which clears the reportArgumentType and LIT001 gate failures. * fix(completions): give the Any import its lint suppression reason |
||
|---|---|---|
| .. | ||
| batches | ||
| chat | ||
| completion | ||
| decisions | ||
| image_edit | ||
| image_generation | ||
| live | ||
| passthrough | ||
| realtime | ||
| response | ||
| search | ||
| text_to_speech | ||
| vector_stores | ||
| videos | ||
| __init__.py | ||
| test_audio_transcriptions.py | ||
| test_azure.py | ||
| test_azure_common_utils.py | ||
| test_azure_cost_calculation.py | ||
| test_azure_embedding.py | ||
| test_azure_exception_mapping.py | ||
| test_azure_fine_tuning_api.py | ||
| test_azure_ptu_capacity.py | ||
| test_azure_speech_audio_transcription.py | ||