Skip to content

Commit 4a42852

Browse files
authored
{AKS} Fix(agent-init): replace max_tokens with max_completion_tokens for connection check of Azure OpenAI service (#9405)
1 parent c349397 commit 4a42852

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/aks-agent/HISTORY.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
1.0.0b11
16+
++++++++
17+
* Fix(agent-init): replace max_tokens with max_completion_tokens for connection check of Azure OpenAI service.
18+
1519
1.0.0b10
1620
++++++++
17-
* pin supabase==2.8.0 to avoid "ModuleNotFoundError: No module named 'supabase_auth.http_clients'"
21+
* Pin supabase==2.8.0 to avoid "ModuleNotFoundError: No module named 'supabase_auth.http_clients'"
1822

1923
1.0.0b9
2024
+++++++

src/aks-agent/azext_aks_agent/agent/llm_providers/azure_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def validate_connection(self, params: dict) -> Tuple[bool, str, str]:
7676
payload = {
7777
"model": deployment_name,
7878
"messages": [{"role": "user", "content": "ping"}],
79-
"max_tokens": 16
79+
"max_completion_tokens": 16
8080
}
8181

8282
try:

src/aks-agent/azext_aks_agent/agent/llm_providers/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,6 @@ def validate_connection(self, params: dict) -> Tuple[bool, str, str]:
157157
Returns a tuple of (is_valid: bool, message: str, action: str)
158158
where action can be "retry_input", "connection_error", or "save".
159159
"""
160+
# TODO(mainred): leverage 3rd party libraries like litellm instead of
161+
# calling http request in each provider to complete the connection check.
160162
raise NotImplementedError()

src/aks-agent/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from setuptools import find_packages, setup
1111

12-
VERSION = "1.0.0b10"
12+
VERSION = "1.0.0b11"
1313

1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",

0 commit comments

Comments
 (0)