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 ai/ml api
Ishaan Jaffer65f5cc29dd00
diff --git a/litellm/llms/aiml/image_generation/transformation.py b/litellm/llms/aiml/image_generation/transformation.pyindex 006a2c16d7e..d8f3e23fe7e 100644--- a/litellm/llms/aiml/image_generation/transformation.py+++ b/litellm/llms/aiml/image_generation/transformation.py@@ -97,6 +97,9 @@ class AimlImageGenerationConfig(BaseImageGenerationConfig):)complete_url = complete_url.rstrip("/")+ # Strip /v1 suffix if present since IMAGE_GENERATION_ENDPOINT already includes v1+ if complete_url.endswith("/v1"):+ complete_url = complete_url[:-3]complete_url = f"{complete_url}/{self.IMAGE_GENERATION_ENDPOINT}"return complete_url