根本原因:PKI 私聊需要接收方的公钥,但 !72d17be4 这个节点从未广播过节点信息,nodeinfo 表中没有它的公钥。这傻x豆包ai突然发什么神经,蠢死了

This commit is contained in:
2026-06-18 00:49:42 +08:00
parent ce07792c4b
commit dfb3fdd3e5
16 files changed
+757 -31

No files matched your search

+12 -1
View File
@@ -54,6 +54,8 @@ import type {
LLMProviderResponse,
LLMPlatformRouterPayload,
LLMPlatformRouterResponse,
LLMPrimaryConfigPayload,
LLMPrimaryConfigResponse,
} from './types'
async function requestJSON<T>(path: string, init?: RequestInit): Promise<T> {
@@ -504,5 +506,14 @@ export function updateLLMToolRouter(payload: Partial<LLMPlatformRouterPayload>):
return putJSON<LLMPlatformRouterResponse>('/api/admin/llm/tool-router', payload)
}
// LLM Primary Config API - 主 AI 回复配置
export function getLLMPrimaryConfig(): Promise<LLMPrimaryConfigResponse> {
return getJSON<LLMPrimaryConfigResponse>('/api/admin/llm/primary-config')
}
export function updateLLMPrimaryConfig(payload: Partial<LLMPrimaryConfigPayload>): Promise<LLMPrimaryConfigResponse> {
return putJSON<LLMPrimaryConfigResponse>('/api/admin/llm/primary-config', payload)
}
// 静默使用未导出类型,避免 TS6133(未使用的导入)。
export type { LLMMessage, LLMMessageStatus, LLMProvider, LLMPlatformRouter } from './types'
export type { LLMMessage, LLMMessageStatus, LLMProvider, LLMPlatformRouter, LLMPrimaryConfig } from './types'