Skip to content

Commit

Permalink
Update garak/generators/openrouter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Martin <[email protected]>
Signed-off-by: Pedram Amini <[email protected]>
  • Loading branch information
pedramamini and jmartin-tech authored Jan 6, 2025
1 parent 78bb00f commit 2d38ced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions garak/generators/openrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class OpenRouterGenerator(OpenAICompatible):
ENV_VAR = "OPENROUTER_API_KEY"
active = True
generator_family_name = "OpenRouter"
DEFAULT_PARAMS = {
**{k: val for k, val in OpenAICompatible.DEFAULT_PARAMS.items() if k != "uri"},
"max_tokens": 2000
DEFAULT_PARAMS = OpenAICompatible.DEFAULT_PARAMS | {
"uri": "https://openrouter.ai/api/v1",
"max_tokens": 2000,
}

def __init__(self, name="", config_root=_config):
Expand Down

0 comments on commit 2d38ced

Please sign in to comment.