Added --openrouter

This commit is contained in:
Paul Gauthier 2024-01-31 17:32:33 -08:00
parent e79732dcf7
commit 1317ee1ace

View file

@ -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",