From 1317ee1aced14de15a806074fd3cf3bad285d3e4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 31 Jan 2024 17:32:33 -0800 Subject: [PATCH] Added --openrouter --- aider/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aider/main.py b/aider/main.py index 43e61d3a9..d0f74f93a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -208,6 +208,13 @@ def main(argv=None, input=None, output=None, force_git_root=None): env_var="OPENAI_API_DEPLOYMENT_ID", help="Specify the deployment_id", ) + model_group.add_argument( + "--openrouter", + dest="openai_api_base", + action="store_const", + const="https://openrouter.ai/api/v1", + help="Specify the api base url as https://openrouter.ai/api/v1", + ) model_group.add_argument( "--edit-format", metavar="EDIT_FORMAT",