forked from openai/openai-agents-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
add support for Azure model usage for model inference.
Agent Context
{ "tasks": [ { "id": "3b0ba90b-99d8-4aab-b16e-a209c1a12016", "taskIndex": 0, "request": "[original issue]\n**Add Azure model support**\nadd support for Azure model usage for model inference.", "title": "Add Azure model support to OpenAIProvider", "createdAt": 1756693211770, "completed": false, "planRevisions": [ { "revisionIndex": 0, "plans": [ { "index": 0, "plan": "Modify `src/agents/models/_openai_shared.py` to add global storage for `azure_endpoint`, `api_version`, and `azure_deployment` parameters, including getter and setter functions for each, similar to `_default_openai_key`.", "completed": false }, { "index": 1, "plan": "Update the `__init__` method of `OpenAIProvider` in `src/agents/models/openai_provider.py` to accept `azure_endpoint`, `api_version`, and `azure_deployment` as optional parameters. Store these parameters as instance variables.", "completed": false }, { "index": 2, "plan": "Modify the `_get_client` method in `src/agents/models/openai_provider.py` to pass the newly added `azure_endpoint`, `api_version`, and `azure_deployment` parameters to the `AsyncOpenAI` client constructor when creating a new client. Prioritize instance-level parameters over globally configured ones.", "completed": false }, { "index": 3, "plan": "Run `make format`, `make lint`, and `make mypy` to ensure code quality and type correctness.", "completed": false }, { "index": 4, "plan": "Run `make tests` to ensure all existing tests pass and the new changes haven't introduced any regressions.", "completed": false } ], "createdAt": 1756693211770, "createdBy": "agent" } ], "activeRevisionIndex": 0 } ], "activeTaskIndex": 0 } [ "Modify `src/agents/models/_openai_shared.py` to add global storage for `azure_endpoint`, `api_version`, and `azure_deployment` parameters, including getter and setter functions for each, similar to `_default_openai_key`.", "Update the `__init__` method of `OpenAIProvider` in `src/agents/models/openai_provider.py` to accept `azure_endpoint`, `api_version`, and `azure_deployment` as optional parameters. Store these parameters as instance variables.", "Modify the `_get_client` method in `src/agents/models/openai_provider.py` to pass the newly added `azure_endpoint`, `api_version`, and `azure_deployment` parameters to the `AsyncOpenAI` client constructor when creating a new client. Prioritize instance-level parameters over globally configured ones.", "Run `make format`, `make lint`, and `make mypy` to ensure code quality and type correctness.", "Run `make tests` to ensure all existing tests pass and the new changes haven't introduced any regressions." ]Metadata
Metadata
Assignees
Labels
No labels