渠道模型列表弹窗与模型数量列
This commit is contained in:
@@ -83,6 +83,15 @@ export function syncAiChannelModels(id: number): Promise<AiModelCacheItem[]> {
|
||||
}).then((r) => r.items)
|
||||
}
|
||||
|
||||
export function listAiChannelModels(id: number): Promise<AiModelCacheItem[]> {
|
||||
return request<{ items: AiModelCacheItem[] }>(`/ai-channels/${id}/models`).then((r) => r.items)
|
||||
}
|
||||
|
||||
/** 单模型 max_tokens=16 试调;通过即设为该渠道探测验证模型并按需置渠道可用 */
|
||||
export function testAiChannelModel(id: number, model: string): Promise<AiChannel> {
|
||||
return request(`/ai-channels/${id}/test-model`, { method: 'POST', body: { model } })
|
||||
}
|
||||
|
||||
// ---- 聚合模型与调用日志 ----
|
||||
|
||||
export function listAiModels(): Promise<AiModel[]> {
|
||||
|
||||
Reference in New Issue
Block a user