Repository: BerriAI/litellm
Issue category: Bug Report

Issue:
[Bug]: supported params are out of date for fireworks AI
### What happened?

when calling fireworks models, litellm is complianing: logprobs is not supproted but it's actually supported by fireworks ai.
ref: https://docs.fireworks.ai/api-reference/post-completions

### Relevant log output

_No response_

### Twitter / LinkedIn details

_No response_


Hints:

Patch:
diff --git a/litellm/llms/fireworks_ai/chat/fireworks_ai_transformation.py b/litellm/llms/fireworks_ai/chat/fireworks_ai_transformation.py
index 4d5b2d6eb3ba..10d8a5913328 100644
--- a/litellm/llms/fireworks_ai/chat/fireworks_ai_transformation.py
+++ b/litellm/llms/fireworks_ai/chat/fireworks_ai_transformation.py
@@ -25,6 +25,7 @@ class FireworksAIConfig:
     stop: Optional[Union[str, list]] = None
     response_format: Optional[dict] = None
     user: Optional[str] = None
+    logprobs: Optional[int] = None
 
     # Non OpenAI parameters - Fireworks AI only params
     prompt_truncate_length: Optional[int] = None
@@ -44,6 +45,7 @@ def __init__(
         stop: Optional[Union[str, list]] = None,
         response_format: Optional[dict] = None,
         user: Optional[str] = None,
+        logprobs: Optional[int] = None,
         prompt_truncate_length: Optional[int] = None,
         context_length_exceeded_behavior: Optional[Literal["error", "truncate"]] = None,
     ) -> None:
@@ -86,6 +88,7 @@ def get_supported_openai_params(self):
             "stop",
             "response_format",
             "user",
+            "logprobs",
             "prompt_truncate_length",
             "context_length_exceeded_behavior",
         ]


Test patch: