全部產品
Search
文件中心

API Gateway:AiServiceConfig

更新時間:Mar 30, 2026

名稱

類型

描述

樣本值

object

結構體描述

provider

string

大模型供應商

qwen

address

string

服務地址

https://dashscope.aliyun.com

enableHealthCheck

boolean

是否啟用健全狀態檢查

true

paiEASServiceConfig

object

PAI-EAS 服務專屬配置

workspaceId

string

工作空間 ID

cb89d4de30042df4459442589664e00d

serviceId

string

服務 ID

svc-cvaeb0um1hkqp79k72v0

serviceName

string

服務名稱

auto-ai-service

endpointType

string

連線類型:私網(vpc)/公網(public)

"public","private"

bedrockServiceConfig

object

Bedrock 服務專屬配置

awsRegion

string

AWS 地區

us-east-1

awsAccessKey

string

AWS 存取金鑰

AKIAIOSFODNN7EXAMPLE

awsSecretKey

string

AWS 密鑰

wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

ApiKeyGenerateMode

string

API 金鑰的產生模式

Custom

defaultModelName

string

預設使用的模型名稱

gpt-4

enableOutlierDetection

boolean

是否啟用異常值檢測功能

true

vertexServiceConfig

object

Vertex AI 服務的配置資訊

vertexAuthKey

string

Vertex AI 的認證密鑰

{\"type\":\"service_account\",\"project_id\":\"my-project\",\"private_key\":\"-----BEGIN PRIVATE KEY-----...\",\"client_email\":\"xxx@xxx.iam.gserviceaccount.com\",\"token_uri\":\"https://oauth2.googleapis.com/token\"}

vertexRegion

string

Vertex AI 服務所在的 Google Cloud 地區

us-central1

vertexProjectId

string

Google Cloud 專案 ID

my-project

vertexAuthServiceName

string

Vertex AI 使用的認證服務名稱

google-oauth2

geminiSafetySetting

object

Gemini 模型的安全過濾層級設定

string

參數

{"BLOCK_NONE": "true"}

vertexTokenRefreshAhead

integer

在存取權杖到期前多少秒提前重新整理

300

protocols

array

模型協議列表

string

協議。

OpenAI/v1

apiKeys

array

apiKey 列表

string

apiKey

sk-xxx

compatibleProtocols

array

服務支援的相容協議列表

string

參數

"openai", "anthropic"