From 2ea23fca31041929c9ab830963950670137e71e6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 15 Nov 2026 10:21:07 +0000 Subject: [PATCH 1/2] [Automated] Draft docs (kagent): chore: remove unsupported Azure OpenAI inline token configuration Signed-off-by: GitHub Action --- .../main/setup/model-providers/azure-openai.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs-site/content/kagent/main/setup/model-providers/azure-openai.md b/docs-site/content/kagent/main/setup/model-providers/azure-openai.md index 7abf8fab..04654f5e 100644 --- a/docs-site/content/kagent/main/setup/model-providers/azure-openai.md +++ b/docs-site/content/kagent/main/setup/model-providers/azure-openai.md @@ -58,8 +58,8 @@ The `azureOpenAI` block takes the following settings. For every field, including | `azureEndpoint` | The endpoint of the Azure OpenAI resource. Required. | | `apiFormat` | Which Azure OpenAI HTTP API to call, either `chatCompletions` or `responses`. Defaults to `chatCompletions`. | | `apiVersion` | The Azure OpenAI API version. Required unless `apiFormat` is `responses`. | -| `azureDeployment` | The deployment name within the resource. | -| `azureAdToken` | A Microsoft Entra ID token to send instead of an API key. | +| `azureDeployment` | The deployment name within the resource. |{{< version include-if="latest,0.x" >}} +| `azureAdToken` | A Microsoft Entra ID token to send instead of an API key. |{{< /version >}} | `temperature` | How much randomness the model applies when it picks the next token. | | `topP` | The nucleus sampling cutoff. | | `maxTokens` | A cap on the tokens generated in one response. | @@ -102,10 +102,14 @@ A link reaches Azure regardless of its media type. Inline bytes reach Azure as a ## Authentication +{{< version exclude-if="latest,0.x" >}} +The `azureAdToken` field is not available in a ModelConfig. Use one of the following credential configurations. +{{< /version >}} + | Configuration | Credential | | ------------- | ---------- | -| `apiKeySecret` is set | The API key from the referenced Secret. | -| `azureOpenAI.azureAdToken` is set | The Microsoft Entra ID token given in the field. | +| `apiKeySecret` is set | The API key from the referenced Secret. |{{< version include-if="latest,0.x" >}} +| `azureOpenAI.azureAdToken` is set | The Microsoft Entra ID token given in the field. |{{< /version >}} | `tokenPassthrough: true` | The bearer token from the caller's request, forwarded to Azure OpenAI as the API key. This is not Microsoft Entra ID authentication, and it is mutually exclusive with `apiKeySecret`. | | `actorJwt` is set | A newly issued Actor token, sent in the `api-key` header. This is not Microsoft Entra ID authentication, and it is mutually exclusive with `apiKeySecret`, `apiKeySecretKey`, and `tokenPassthrough`. For more information, see [Authenticate as the Actor]({{< link path="setup/model-providers/about-model-providers#authenticate-as-the-actor" >}}). | From 8626eb3f6f23fbf4bc08ba0504944c1d042ff647 Mon Sep 17 00:00:00 2001 From: Nadine2016 Date: Thu, 19 Nov 2026 13:09:54 -0500 Subject: [PATCH 2/2] Review comments Signed-off-by: Nadine2016 --- docs-site/content/kagent/main/reference/api-ref.md | 1 - docs-site/content/kagent/main/reference/helm.md | 1 - .../kagent/main/setup/model-providers/azure-openai.md | 10 +++------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docs-site/content/kagent/main/reference/api-ref.md b/docs-site/content/kagent/main/reference/api-ref.md index 7d3ec24c..4addabbb 100644 --- a/docs-site/content/kagent/main/reference/api-ref.md +++ b/docs-site/content/kagent/main/reference/api-ref.md @@ -251,7 +251,6 @@ _Appears in:_ | `azureEndpoint` _string_ | Endpoint for the Azure OpenAI API | | **Required**
| | `apiVersion` _string_ | API version for the Azure OpenAI API. Required unless apiFormat is responses. | | | | `azureDeployment` _string_ | Deployment name for the Azure OpenAI API | | | -| `azureAdToken` _string_ | Azure AD token for authentication | | | | `temperature` _string_ | Temperature for sampling | | | | `maxTokens` _integer_ | Maximum tokens to generate | | Minimum: 1
| | `topP` _string_ | Top-p sampling parameter | | | diff --git a/docs-site/content/kagent/main/reference/helm.md b/docs-site/content/kagent/main/reference/helm.md index b7fb545a..1422986c 100644 --- a/docs-site/content/kagent/main/reference/helm.md +++ b/docs-site/content/kagent/main/reference/helm.md @@ -193,7 +193,6 @@ A Helm chart for kagent, built with Google ADK | providers.azureOpenAI.apiKeySecretKey | string | `"AZUREOPENAI_API_KEY"` | | | providers.azureOpenAI.apiKeySecretRef | string | `"kagent-azure-openai"` | | | providers.azureOpenAI.config.apiVersion | string | `"2023-05-15"` | | -| providers.azureOpenAI.config.azureAdToken | string | `""` | | | providers.azureOpenAI.config.azureDeployment | string | `""` | | | providers.azureOpenAI.config.azureEndpoint | string | `""` | | | providers.azureOpenAI.model | string | `"gpt-4.1-mini"` | | diff --git a/docs-site/content/kagent/main/setup/model-providers/azure-openai.md b/docs-site/content/kagent/main/setup/model-providers/azure-openai.md index 04654f5e..d992e171 100644 --- a/docs-site/content/kagent/main/setup/model-providers/azure-openai.md +++ b/docs-site/content/kagent/main/setup/model-providers/azure-openai.md @@ -47,7 +47,7 @@ The `AzureOpenAI` provider calls an Azure OpenAI deployment. It differs from the | `provider` | The provider to use, `AzureOpenAI`. | | `azureOpenAI.azureEndpoint` | The endpoint of your Azure OpenAI resource. This field is required. | | `azureOpenAI.apiVersion` | The Azure OpenAI API version to call. This field is required unless `apiFormat` is `responses`. | - | `azureOpenAI.azureDeployment` | The name of the deployment within the resource. | + | `azureOpenAI.azureDeployment` | The name that you gave the model deployment when you created it in your Azure OpenAI resource. The name can differ from the model name. | ## Azure OpenAI provider settings @@ -58,8 +58,7 @@ The `azureOpenAI` block takes the following settings. For every field, including | `azureEndpoint` | The endpoint of the Azure OpenAI resource. Required. | | `apiFormat` | Which Azure OpenAI HTTP API to call, either `chatCompletions` or `responses`. Defaults to `chatCompletions`. | | `apiVersion` | The Azure OpenAI API version. Required unless `apiFormat` is `responses`. | -| `azureDeployment` | The deployment name within the resource. |{{< version include-if="latest,0.x" >}} -| `azureAdToken` | A Microsoft Entra ID token to send instead of an API key. |{{< /version >}} +| `azureDeployment` | The name that you gave the model deployment when you created it in your Azure OpenAI resource. The name can differ from the model name. | | `temperature` | How much randomness the model applies when it picks the next token. | | `topP` | The nucleus sampling cutoff. | | `maxTokens` | A cap on the tokens generated in one response. | @@ -102,14 +101,11 @@ A link reaches Azure regardless of its media type. Inline bytes reach Azure as a ## Authentication -{{< version exclude-if="latest,0.x" >}} The `azureAdToken` field is not available in a ModelConfig. Use one of the following credential configurations. -{{< /version >}} | Configuration | Credential | | ------------- | ---------- | -| `apiKeySecret` is set | The API key from the referenced Secret. |{{< version include-if="latest,0.x" >}} -| `azureOpenAI.azureAdToken` is set | The Microsoft Entra ID token given in the field. |{{< /version >}} +| `apiKeySecret` is set | The API key from the referenced Secret. | | `tokenPassthrough: true` | The bearer token from the caller's request, forwarded to Azure OpenAI as the API key. This is not Microsoft Entra ID authentication, and it is mutually exclusive with `apiKeySecret`. | | `actorJwt` is set | A newly issued Actor token, sent in the `api-key` header. This is not Microsoft Entra ID authentication, and it is mutually exclusive with `apiKeySecret`, `apiKeySecretKey`, and `tokenPassthrough`. For more information, see [Authenticate as the Actor]({{< link path="setup/model-providers/about-model-providers#authenticate-as-the-actor" >}}). |