Skip to content

Commit

Permalink
fix: Fix the property type of apiTokens used in ai-proxy plugin (higr…
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jun 12, 2024
1 parent a13c8a3 commit 4708ae7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
required:
- typ
properties:
apiToken:
apiTokens:
type: array
title: API Tokens
x-title-i18n:
Expand All @@ -43,7 +43,7 @@ spec:
x-description-i18n:
zh-CN: 在请求AI服务时用于认证的API Token列表。不同的AI服务提供商可能有不同的名称。部分供应商只支持配置一个API Token(如Azure OpenAI)。
items:
type: array
type: string
title: apiToken
x-title-i18n:
en-US: apiToken
Expand Down Expand Up @@ -136,7 +136,8 @@ spec:
zh-CN: AI服务提供商类型,目前支持的取值为:"moonshot"、"qwen"、"openai"、"azure"
example:
provider:
apiToken: YOUR_DASHSCOPE_API_TOKEN
apiTokens:
- YOUR_DASHSCOPE_API_TOKEN
modelMapping:
'*': qwen-turbo
type: qwen

0 comments on commit 4708ae7

Please sign in to comment.