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 mypy type error in fireworks_ai transformation (#20391)
shin-bot-litellmd1994a148dce
diff --git a/litellm/llms/fireworks_ai/chat/transformation.py b/litellm/llms/fireworks_ai/chat/transformation.pyindex f6ea9c57f77..7ec32fecc46 100644--- a/litellm/llms/fireworks_ai/chat/transformation.py+++ b/litellm/llms/fireworks_ai/chat/transformation.py@@ -239,7 +239,7 @@ class FireworksAIConfig(OpenAIGPTConfig):# Remove fields not permitted by FireworksAI that may cause:# "Not permitted, field: 'messages[n].provider_specific_fields'"if isinstance(message, dict) and "provider_specific_fields" in message:- message.pop("provider_specific_fields", None)+ cast(dict, message).pop("provider_specific_fields", None)return messages