mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
parent
b107db98fa
commit
57ab2cc9da
8 changed files with 13 additions and 21 deletions
|
@ -189,6 +189,7 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
|||
metavar="OPENAI_API_VERSION",
|
||||
help="Specify the api_version",
|
||||
)
|
||||
# TODO: use deployment_id
|
||||
model_group.add_argument(
|
||||
"--openai-api-deployment-id",
|
||||
metavar="OPENAI_API_DEPLOYMENT_ID",
|
||||
|
@ -506,9 +507,7 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
|||
|
||||
client = openai.OpenAI(api_key=args.openai_api_key, **kwargs)
|
||||
|
||||
main_model = models.Model.create(
|
||||
args.model, client, deployment_id=args.openai_api_deployment_id
|
||||
)
|
||||
main_model = models.Model.create(args.model, client)
|
||||
|
||||
try:
|
||||
coder = Coder.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue