Skip to content

Commit

Permalink
Backport PR #1216: Fixes duplicate api key being passed in `openroute…
Browse files Browse the repository at this point in the history
…r.py` (#1219)

Co-authored-by: Sanjiv Das <srdas@scu.edu>
  • Loading branch information
meeseeksmachine and srdas authored Jan 28, 2025
1 parent 1b5d9ba commit 3191129
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, **kwargs):
openrouter_api_base = kwargs.pop(
"openai_api_base", "https://openrouter.ai/api/v1"
)

kwargs.pop("openrouter_api_key", None)
super().__init__(
openai_api_key=openrouter_api_key,
openai_api_base=openrouter_api_base,
Expand Down

0 comments on commit 3191129

Please sign in to comment.