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]

Fix not sended json_data_for_triton

Artem Zemliak5290490106e4
diff --git a/litellm/llms/triton.py b/litellm/llms/triton.py
index 7d0338d0691..14a2e828b4b 100644
--- a/litellm/llms/triton.py
+++ b/litellm/llms/triton.py
@@ -240,10 +240,10 @@ class TritonChatCompletion(BaseLLM):
handler = HTTPHandler()
if stream:
return self._handle_stream(
- handler, api_base, data_for_triton, model, logging_obj
+ handler, api_base, json_data_for_triton, model, logging_obj
)
else:
- response = handler.post(url=api_base, data=data_for_triton, headers=headers)
+ response = handler.post(url=api_base, data=json_data_for_triton, headers=headers)
return self._handle_response(
response, model_response, logging_obj, type_of_model=type_of_model
)