This commit is contained in:
2026-06-20 01:45:24 +08:00
parent 94835a5f1d
commit fd766be731
12 changed files with 727 additions and 30 deletions
+12 -1
View File
@@ -54,6 +54,8 @@ import type {
LLMProviderResponse,
LLMPlatformRouterPayload,
LLMPlatformRouterResponse,
LLMTopicConfigPayload,
LLMTopicConfigResponse,
LLMPrimaryConfigPayload,
LLMPrimaryConfigResponse,
} from './types'
@@ -526,6 +528,15 @@ export function updateLLMToolRouter(payload: Partial<LLMPlatformRouterPayload>):
return putJSON<LLMPlatformRouterResponse>('/api/admin/llm/tool-router', payload)
}
// LLM Topic Config API - 话题选择配置
export function getLLMTopicConfig(): Promise<LLMTopicConfigResponse> {
return getJSON<LLMTopicConfigResponse>('/api/admin/llm/topic-config')
}
export function updateLLMTopicConfig(payload: Partial<LLMTopicConfigPayload>): Promise<LLMTopicConfigResponse> {
return putJSON<LLMTopicConfigResponse>('/api/admin/llm/topic-config', payload)
}
// LLM Primary Config API - 主 AI 回复配置
export function getLLMPrimaryConfig(): Promise<LLMPrimaryConfigResponse> {
return getJSON<LLMPrimaryConfigResponse>('/api/admin/llm/primary-config')
@@ -536,4 +547,4 @@ export function updateLLMPrimaryConfig(payload: Partial<LLMPrimaryConfigPayload>
}
// 静默使用未导出类型,避免 TS6133(未使用的导入)。
export type { LLMMessage, LLMMessageStatus, LLMProvider, LLMPlatformRouter, LLMPrimaryConfig } from './types'
export type { LLMMessage, LLMMessageStatus, LLMProvider, LLMPlatformRouter, LLMTopicConfig, LLMPrimaryConfig } from './types'