AiServiceConfig

更新时间:
复制为 MD 格式

名称

类型

描述

示例值

object

结构体描述

provider

string

大模型提供商

qwen moonshot baichuan yi zhipuai 360ai hunyuan stepfun spark openai claude anthropic doubao minimax gemini azure deepseek custom pai-eas bedrock vertex

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"