24 lines
659 B
TypeScript
24 lines
659 B
TypeScript
// --- Types (从后端模型同步或手动定义) ---
|
|
// 这些类型应该与后端 pydantic_models.py 中的 Read 模型匹配
|
|
export interface Assistant {
|
|
id: string;
|
|
name: string;
|
|
description?: string | null;
|
|
avatar?: string | null;
|
|
system_prompt: string;
|
|
model: string;
|
|
temperature: number;
|
|
}
|
|
// 创建助手时发送的数据类型
|
|
export interface AssistantCreateData {
|
|
name: string;
|
|
description?: string | null;
|
|
avatar?: string | null;
|
|
system_prompt: string;
|
|
model: string;
|
|
temperature: number;
|
|
}
|
|
|
|
// 更新助手时发送的数据类型 (所有字段可选)
|
|
export type AssistantUpdateData = Partial<AssistantCreateData>;
|