Skip to content

Commit

Permalink
Fixes duplicate api key being passed in openrouter.py (#1216)
Browse files Browse the repository at this point in the history
* Updated documentation for pip install in zsh

Fixes #1209

Updated documentation to handle installation using `zsh` on Macs, which is now the default shell.

* Update openrouter.py
  • Loading branch information
srdas authored Jan 28, 2025
1 parent 42fedb9 commit 4154733
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 4154733

Please sign in to comment.