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]

style(fireworks_ai): format capability fallback

Krrish Dholakiadad1b132258e
diff --git a/litellm/llms/fireworks_ai/chat/transformation.py b/litellm/llms/fireworks_ai/chat/transformation.py
index 6aa6a3600f0..26ad9a02a79 100644
--- a/litellm/llms/fireworks_ai/chat/transformation.py
+++ b/litellm/llms/fireworks_ai/chat/transformation.py
@@ -278,9 +278,9 @@ class FireworksAIConfig(FireworksAIMixin, OpenAIGPTConfig):
supported_params.append("tool_choice")
# Only add reasoning params for models that support it
- if self._get_model_cost_capability_exact(
- model=model, capability="supports_reasoning"
- ) or supports_reasoning(model=model, custom_llm_provider="fireworks_ai"):
+ if self._get_model_cost_capability_exact(model=model, capability="supports_reasoning") or supports_reasoning(
+ model=model, custom_llm_provider="fireworks_ai"
+ ):
supported_params.append("reasoning_effort")
supported_params.append("reasoning_history")
supported_params.append("thinking")