mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
implement deployment id
This commit is contained in:
parent
bf03f43b44
commit
b107db98fa
8 changed files with 21 additions and 13 deletions
|
@ -189,7 +189,6 @@ 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",
|
||||
|
@ -507,7 +506,9 @@ 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)
|
||||
main_model = models.Model.create(
|
||||
args.model, client, deployment_id=args.openai_api_deployment_id
|
||||
)
|
||||
|
||||
try:
|
||||
coder = Coder.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue