添加会话模型和API Key配置功能
- 在模型模块中新增会话开关状态字段,支持会话模型的管理。 - 更新模型选择器,增加系统模型的API Key配置弹窗,提升用户体验。 - 优化错误处理逻辑,确保接口错误由全局拦截器处理,减少冗余提示。 - 更新相关样式以增强界面可读性和美观性。
This commit is contained in:
@@ -79,6 +79,8 @@ export interface ModelModuleItem {
|
||||
apiKey?: string;
|
||||
isPrivate?: number;
|
||||
isChatModel?: number;
|
||||
/** 会话开关状态(列表接口返回,0 关 1 开;会话开关接口就绪后生效) */
|
||||
chatSessionEnabled?: number;
|
||||
enabled: number;
|
||||
maxConcurrency: number;
|
||||
queueLimit: number;
|
||||
@@ -210,3 +212,8 @@ export function getModelModuleDetail(id: number | string) {
|
||||
params: { id },
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: 列表「会话开关」提交接口确定后在此封装,例如:
|
||||
// export function updateModelChatSessionSwitch(data: { id: number | string; chatSessionEnabled: 0 | 1 }) {
|
||||
// return request({ url: '/model-gateway/model/...', method: 'post', data });
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user