litellm/tests/test_litellm/responses
Sameer Kankute 021540b2e2 fix: prevent double prompt management in async path, preserve optional params
- aresponses() now pops prompt_id from kwargs after the async hook runs
  and passes merged_optional_params via _async_prompt_merged_params.
  responses() checks for this internal kwarg first and skips the sync
  hook entirely when present — eliminating double-merge of template
  messages.
- merged_optional_params from async_get_chat_completion_prompt is no
  longer discarded (_); it flows through to local_vars in responses().
- Async tests now assert get_chat_completion_prompt.assert_not_called()
  to directly detect any double-execution regression.

Made-with: Cursor
2026-03-18 17:09:28 +05:30
..
litellm_completion_transformation Reapply "feat: add model_cost aliases expansion support" 2026-03-12 13:36:57 -03:00
mcp [Fix] Pass MCP auth headers from request into tool fetch for /v1/responses and chat completions (#22291) 2026-02-27 19:15:51 -08:00
test_metadata_codex_callback.py Fix test isolation: clear litellm.callbacks and model_fallbacks between tests 2026-03-15 16:43:15 -07:00
test_no_duplicate_spend_logs.py fix(test): add timeout to flush() call to prevent 300s hang in CI (#21819) 2026-02-21 14:10:57 -08:00
test_null_test_fix.py Fix: Responses content can't be none 2026-01-14 12:13:18 +05:30
test_responses_api_request_body.py [Feat] Adds support for server-side compaction on the OpenAI Responses API context_management (#21058) 2026-02-12 10:00:30 -08:00
test_responses_prompt_management.py fix: prevent double prompt management in async path, preserve optional params 2026-03-18 17:09:28 +05:30
test_responses_utils.py Add test case 2026-02-20 16:22:44 +05:30
test_responses_websocket_all_providers.py Add tests for resp 2026-03-04 18:27:06 +05:30
test_text_format_conversion.py Fix: test_text_format_to_text_conversion - properly mock handler to avoid API calls 2026-01-08 16:37:12 +05:30