We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7687d commit 3c516e0Copy full SHA for 3c516e0
eval_protocol/proxy/proxy_core/litellm.py
@@ -63,7 +63,10 @@ async def handle_chat_completion(
63
auth_header = request.headers.get("authorization", "")
64
if auth_header.startswith("Bearer "):
65
api_key = auth_header.replace("Bearer ", "").strip()
66
- data["api_key"] = api_key
+ # Only inject API key if model is a Fireworks model
67
+ model = data.get("model")
68
+ if model and isinstance(model, str) and model.startswith("fireworks_ai"):
69
+ data["api_key"] = api_key
70
71
# If metadata IDs are provided, add them as tags
72
insertion_id = None
0 commit comments