Files
Genarrative/packages/shared/src/contracts/generated/LlmModelsResponse.ts
T
k88936 e89420053a feat(会员): 模型列表返回可用与不可用分桶
- shared-contracts 新增 llm_catalog.rs:LlmModelsResponse/LlmModelSummary/LlmUnavailableModel/LlmModelUnavailableReason(plan_required/disabled/unknown),未停用优先于档位的 disabled 语义留给域层
- AgcAgentMode/AgcModelProtocol 从 module-runtime 迁入 shared-contracts(前后端 + ts-rs 单一真源),module-runtime re-export 保持路径可用
- 整个目录 DTO 与枚举走 ts-rs,生成到 packages/shared/src/contracts/generated,revision 标 number
- module-runtime 新增 AgcModelCatalog::unavailable_models_for(access):保持目录顺序,停用优先于档位不足,补单测
- api-server public_model_catalog 产出 models + unavailableModels 两桶,重写 model_catalog_tests
2026-10-04 13:29:29 +08:00

21 lines
679 B
TypeScript
Generated

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { LlmModelSummary } from "./LlmModelSummary";
import type { LlmUnavailableModel } from "./LlmUnavailableModel";
/**
* `GET /api/llm/models` 的响应。
*/
export type LlmModelsResponse = { defaultModelId: string,
/**
* 本档可用,保持目录顺序。
*/
models: Array<LlmModelSummary>,
/**
* 目录里其余全部,保持目录顺序;旧服务端缺字段时为空。
*/
unavailableModels: Array<LlmUnavailableModel>,
/**
* 模型目录版本;ts-rs 默认把 `u64` 映射成 `bigint`,前端消费 `number`。
*/
revision: number, };