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 linting error
Cole McIntosh8574619d2c9f
diff --git a/litellm/llms/mistral/mistral_chat_transformation.py b/litellm/llms/mistral/mistral_chat_transformation.pyindex 110b41fee6f..d3e0eed5817 100644--- a/litellm/llms/mistral/mistral_chat_transformation.py+++ b/litellm/llms/mistral/mistral_chat_transformation.py@@ -255,7 +255,7 @@ Then provide a clear, concise answer based on your reasoning."""# Handle both string and list content, preserving original formatif isinstance(existing_content, str):# String content - prepend reasoning prompt- new_content = f"{reasoning_prompt}\n\n{existing_content}"+ new_content: Union[str, list] = f"{reasoning_prompt}\n\n{existing_content}"elif isinstance(existing_content, list):# List content - prepend reasoning prompt as text blocknew_content = [