Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

#response_format NVIDIA-NIM add response_format to OpenAI parameters mapping (#12003)

shagunb-acndd38e804719f
diff --git a/litellm/llms/nvidia_nim/chat/transformation.py b/litellm/llms/nvidia_nim/chat/transformation.py
index 20478afb59f..e687229949b 100644
--- a/litellm/llms/nvidia_nim/chat/transformation.py
+++ b/litellm/llms/nvidia_nim/chat/transformation.py
@@ -91,6 +91,7 @@ class NvidiaNimConfig(OpenAIGPTConfig):
"tools",
"tool_choice",
"parallel_tool_calls",
+ "response_format",
]
def map_openai_params(