API 参考
软件包
vllm.ai/v1alpha1
软件包 v1alpha1 包含了 v1alpha1 API 组的 API Schema 定义。
资源类型
Decision ( 决策)
Decision 定义了基于规则组合的路由决策。
出现位置:
| 字段 | 描述 | 默认值 | 验证 |
|---|---|---|---|
name string | Name 是此决策的唯一标识符 | MaxLength: 100 MinLength: 1 Required: {} | |
priority integer | Priority 定义了此决策的优先级(值越高 = 优先级越高) 当策略为 "priority" 时使用 | 0 | Maximum: 1000 Minimum: 0 |
description string | Description 提供了对此决策的人类可读描述 | MaxLength: 500 | |
signals SignalCombination | Signals 定义了信号组合逻辑 | Required: {} | |
modelRefs ModelRef array | ModelRefs 定义了此决策的模型引用(目前仅支持一个模型) | MaxItems: 1 MinItems: 1 Required: {} | |
plugins DecisionPlugin array | Plugins 定义了应用于此决策的插件 | MaxItems: 10 |
DecisionPlugin (决策插件)
DecisionPlugin 定义了决策的插件配置。
出现位置:
| 字段 | 描述 | 默认值 | 验证 |
|---|---|---|---|
type string | Type 是插件类型 (fast_response, hallucination, header_mutation, image_gen, memory, rag, request_params, response_jailbreak, router_replay, semantic-cache, system_prompt, tools) | Enum: [fast_response hallucination header_mutation image_gen memory rag request_params response_jailbreak router_replay semantic-cache system_prompt tools] Required: {} | |
configuration RawExtension | Configuration 是作为原始 JSON 对象的插件特定配置 | Schemaless: {} |
DomainSignal (领域信号)
DomainSignal 定义了用于分类的领域类别。
出现位置:
| 字段 | 描述 | 默认值 | 验证 |
|---|---|---|---|
name string | Name 是此领域的唯一标识符 | MaxLength: 100 MinLength: 1 Required: {} | |
description string | Description 提供了对此领域的人类可读描述 | MaxLength: 500 |