Skip to content

Commit 225604b

Browse files
authored
bump aks agent and accept endpoint with cognitiveservices.azure.com/ (#9619)
1 parent 3d55c8e commit 225604b

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

src/aks-agent/HISTORY.rst

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

15+
1.0.0b18
16+
++++++++
17+
* Bump aks-agent to v0.3.0
18+
* chore: use aks mcp streamable-http mode
19+
* Remove runbook toolset until it's stabilized
20+
* Several CEV fixes
21+
* Fix: accept endpoints ending with cognitiveservices.azure.com/ for Azure OpenAI service
22+
1523
1.0.0b17
1624
++++++++
17-
* Fix: remove the prompt to user about managed identity client id during `az aks agent-init``
25+
* Fix: remove the prompt to user about managed identity client id during `az aks agent-init`
1826

1927
1.0.0b16
2028
++++++++

src/aks-agent/azext_aks_agent/agent/k8s/aks_agent_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(self, resource_group_name: str, cluster_name: str,
128128
self.subscription_id: str = subscription_id
129129

130130
self.chart_repo = "oci://mcr.microsoft.com/aks/aks-agent-chart/aks-agent"
131-
self.chart_version = "0.2.0"
131+
self.chart_version = "0.3.0"
132132

133133
# credentials for aks-mcp
134134
# Default empty customized cluster role name means using default cluster role
@@ -973,7 +973,7 @@ def __init__(self, resource_group_name: str, cluster_name: str,
973973
self.config_dir = self.base_config_dir / subscription_id / resource_group_name / cluster_name
974974

975975
# Docker image for client mode execution
976-
self.docker_image = "mcr.microsoft.com/aks/aks-agent:v0.2.0-client"
976+
self.docker_image = "mcr.microsoft.com/aks/aks-agent:v0.3.0-client"
977977

978978
self.llm_config_manager = LLMConfigManagerLocal(
979979
subscription_id=subscription_id,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414

1515
def is_valid_api_base(v: str) -> bool:
16-
# validate the v follows the pattern https://{azure-openai-service-name}.openai.azure.com/
17-
if not v.startswith("https://") or not v.endswith(".openai.azure.com/"):
16+
# A valid api_base should be a URL and starts with https://, and ends with either .openai.azure.com/ or
17+
# .cognitiveservices.azure.com/. Until there's a convergence on the endpoint format for Azure OpenAI service,
18+
# we will accept both formats without validation.
19+
if not v.startswith("https://"):
1820
return False
19-
2021
return is_valid_url(v)
2122

2223

@@ -48,7 +49,6 @@ def parameter_schema(self):
4849
"api_base": {
4950
"secret": False,
5051
"default": None,
51-
"hint": "https://{azure-openai-service-name}.openai.azure.com/",
5252
"validator": is_valid_api_base
5353
},
5454
"api_version": {

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.0b17"
12+
VERSION = "1.0.0b18"
1313

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

0 commit comments

Comments
 (0)