Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase live test timeout + fixes for GA version #34861

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions sdk/openai/azure-openai/tests/test_chat_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,11 @@ def test_chat_completion_byod(self, client, api_type, api_version, **kwargs):
"type": "azure_search",
"parameters": {
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
"authentication": {
"type": "api_key",
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
}
}
}
],
Expand Down Expand Up @@ -749,8 +752,11 @@ def test_streamed_chat_completions_byod(self, client, api_type, api_version, **k
"type": "azure_search",
"parameters": {
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
"authentication": {
"type": "api_key",
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
}
}
}
],
Expand Down
14 changes: 10 additions & 4 deletions sdk/openai/azure-openai/tests/test_chat_completions_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,11 @@ async def test_chat_completion_byod(self, client_async, api_type, api_version, *
"type": "azure_search",
"parameters": {
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
"authentication": {
"type": "api_key",
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
}
}
}
],
Expand Down Expand Up @@ -766,8 +769,11 @@ async def test_streamed_chat_completions_byod(self, client_async, api_type, api_
"type": "azure_search",
"parameters": {
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
"authentication": {
"type": "api_key",
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
}
}
}
],
Expand Down
1 change: 1 addition & 0 deletions sdk/openai/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
ServiceDirectory: openai
TestTimeoutInMinutes: 200
ToxTestEnv: optional
MatrixFilters:
- PythonVersion=3.11.*
Expand Down