From ac5ca7b45a35881f55a848c61ab312fcb59ac0c2 Mon Sep 17 00:00:00 2001 From: arshardh Date: Wed, 18 Feb 2026 14:49:24 +0530 Subject: [PATCH] Fix default templates --- .../azureopenai-template.yaml | 8 ++++---- .../default-llm-provider-templates/openai-template.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platform-api/src/resources/default-llm-provider-templates/azureopenai-template.yaml b/platform-api/src/resources/default-llm-provider-templates/azureopenai-template.yaml index ecfe2a9d2..85bcd6320 100644 --- a/platform-api/src/resources/default-llm-provider-templates/azureopenai-template.yaml +++ b/platform-api/src/resources/default-llm-provider-templates/azureopenai-template.yaml @@ -26,14 +26,14 @@ spec: auth: type: apiKey header: api-key - logoUrl: https://raw.githubusercontent.com/nomadxd/openapi-connectors/main/openapi/azure.openai/icon.png - openapiSpecUrl: https://raw.githubusercontent.com/nomadxd/openapi-connectors/main/openapi/azure.openai/openapi.yaml + logoUrl: https://raw.githubusercontent.com/nomadxd/openapi-connectors/refs/heads/main/openapi/azure.openai.v2/icon.png + openapiSpecUrl: https://raw.githubusercontent.com/nomadxd/openapi-connectors/refs/heads/main/openapi/azure.openai.v2/openapi.yaml promptTokens: location: payload - identifier: $.usage.prompt_tokens + identifier: $.usage.input_tokens completionTokens: location: payload - identifier: $.usage.completion_tokens + identifier: $.usage.output_tokens totalTokens: location: payload identifier: $.usage.total_tokens diff --git a/platform-api/src/resources/default-llm-provider-templates/openai-template.yaml b/platform-api/src/resources/default-llm-provider-templates/openai-template.yaml index 7d28d9ad1..0c4d22094 100644 --- a/platform-api/src/resources/default-llm-provider-templates/openai-template.yaml +++ b/platform-api/src/resources/default-llm-provider-templates/openai-template.yaml @@ -23,7 +23,7 @@ metadata: spec: displayName: OpenAI metadata: - endpointUrl: https://api.openai.com + endpointUrl: https://api.openai.com/v1 auth: type: apiKey header: Authorization