From e79732dcf7ef0ac5ea8cc27efa3af78b66e60112 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 31 Jan 2024 15:26:53 -0800 Subject: [PATCH] Added env_vars for all the OPENAI_ env vars --- aider/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 93555117c..43e61d3a9 100644 --- a/aider/main.py +++ b/aider/main.py @@ -142,8 +142,8 @@ def main(argv=None, input=None, output=None, force_git_root=None): core_group.add_argument( "--openai-api-key", metavar="OPENAI_API_KEY", - help="Specify the OpenAI API key", env_var="OPENAI_API_KEY", + help="Specify the OpenAI API key", ) core_group.add_argument( "--model", @@ -187,21 +187,25 @@ def main(argv=None, input=None, output=None, force_git_root=None): model_group.add_argument( "--openai-api-base", metavar="OPENAI_API_BASE", + env_var="OPENAI_API_BASE", help="Specify the api base url", ) model_group.add_argument( "--openai-api-type", metavar="OPENAI_API_TYPE", + env_var="OPENAI_API_TYPE", help="Specify the api_type", ) model_group.add_argument( "--openai-api-version", metavar="OPENAI_API_VERSION", + env_var="OPENAI_API_VERSION", help="Specify the api_version", ) model_group.add_argument( "--openai-api-deployment-id", metavar="OPENAI_API_DEPLOYMENT_ID", + env_var="OPENAI_API_DEPLOYMENT_ID", help="Specify the deployment_id", ) model_group.add_argument(