feat: 完善渠道商管理
This commit is contained in:
@@ -98,3 +98,8 @@ export function updateModel(data: AiModelUpdateInput) {
|
||||
export function deleteModel(id: string) {
|
||||
return del(`/channel/model/${id}`).json();
|
||||
}
|
||||
|
||||
// 清除尊享模型ID缓存
|
||||
export function clearPremiumModelCache() {
|
||||
return post('/model/clear-premium-cache').json();
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ export interface AiModelDto {
|
||||
providerName?: string;
|
||||
iconUrl?: string;
|
||||
isPremium: boolean;
|
||||
isEnabled: boolean;
|
||||
}
|
||||
|
||||
// 创建AI模型输入
|
||||
@@ -84,6 +85,7 @@ export interface AiModelCreateInput {
|
||||
providerName?: string;
|
||||
iconUrl?: string;
|
||||
isPremium: boolean;
|
||||
isEnabled: boolean;
|
||||
}
|
||||
|
||||
// 更新AI模型输入
|
||||
@@ -103,6 +105,7 @@ export interface AiModelUpdateInput {
|
||||
providerName?: string;
|
||||
iconUrl?: string;
|
||||
isPremium: boolean;
|
||||
isEnabled: boolean;
|
||||
}
|
||||
|
||||
// 获取AI模型列表输入
|
||||
|
||||
Reference in New Issue
Block a user