From a7ac24de9d33b10e27eb31f5568a2a7e68c729ab Mon Sep 17 00:00:00 2001 From: Naduni Pamudika Date: Thu, 30 Jul 2026 13:40:14 +0530 Subject: [PATCH 1/5] Improve docs for the release --- .../llm-provider-template-management.md | 38 +++++++++++++------ .../ai-workspace/configure-inbound-auth.md | 26 ++++--------- .../llm-providers/configure-provider.md | 2 +- .../llm-providers/manage-provider.md | 36 ++++++++---------- .../llm-providers/configure-provider.md | 2 +- .../llm-providers/manage-provider.md | 36 ++++++++---------- 6 files changed, 67 insertions(+), 73 deletions(-) diff --git a/en/docs/api-gateway/next/gateway-controller-management-api/llm-provider-template-management.md b/en/docs/api-gateway/next/gateway-controller-management-api/llm-provider-template-management.md index d1e885703..0042a2793 100644 --- a/en/docs/api-gateway/next/gateway-controller-management-api/llm-provider-template-management.md +++ b/en/docs/api-gateway/next/gateway-controller-management-api/llm-provider-template-management.md @@ -26,7 +26,7 @@ CRUD operations for LLM Provider Template configurations ```shell -curl -X POST http://localhost:9090/api/management/v0.9/llm-provider-templates \ +curl -X POST http://localhost:9090/api/management/v1/llm-provider-templates \ -u {username}:{password} \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ @@ -40,7 +40,7 @@ Add a new LLM provider template to the Gateway. A template defines token trackin ```json { - "apiVersion": "gateway.api-platform.wso2.com/v1alpha1", + "apiVersion": "gateway.api-platform.wso2.com/v1", "kind": "LlmProviderTemplate", "metadata": { "name": "openai-template" @@ -75,6 +75,20 @@ Add a new LLM provider template to the Gateway. A template defines token trackin } ``` +!!! note "Using a YAML downloaded from AI Workspace" + If you downloaded the template YAML from AI Workspace, you have two options to use it with this endpoint: + + - **Convert to JSON:** Convert the YAML file to JSON before passing it as the request body with `-H 'Content-Type: application/json'`. + - **Send as YAML:** Pass the YAML file directly and change the content type header to `application/yaml`: + + ```shell + curl -X POST http://localhost:9090/api/management/v1/llm-provider-templates \ + -u {username}:{password} \ + -H 'Content-Type: application/yaml' \ + -H 'Accept: application/json' \ + --data-binary @template.yaml + ``` + ### Authentication