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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix get_complete_url
Minwoo Leec62be184c2e9
diff --git a/litellm/llms/triton/completion/transformation.py b/litellm/llms/triton/completion/transformation.pyindex b09f7b04443..0a65e216dfe 100644--- a/litellm/llms/triton/completion/transformation.py+++ b/litellm/llms/triton/completion/transformation.py@@ -67,6 +67,18 @@ class TritonConfig(BaseConfig):optional_params[param] = valuereturn optional_params+ def get_complete_url(+ self,+ api_base: str,+ model: str,+ optional_params: dict,+ stream: Optional[bool] = None,+ ) -> str:+ llm_type = self._get_triton_llm_type(api_base)+ if llm_type == "generate" and stream:+ return api_base + "_stream"+ return api_base+def transform_response(self,model: str,@@ -167,17 +179,6 @@ class TritonGenerateConfig(TritonConfig):Transformations for triton /generate endpoint (This is a trtllm model)"""- def get_complete_url(- self,- api_base: str,- model: str,- optional_params: dict,- stream: Optional[bool] = None,- ) -> str:- if stream:- return api_base + "_stream"- return api_base-def transform_request(self,model: str,