/** * 默认 AI 配置服务 * * 当用户没有配置任何 AI provider 时,使用 OpenRouter 免费模型 * 智能识别用户输入中的 AI 配置信息并存储到 Pod */ /** * 默认 AI 配置(OpenRouter 免费模型) */ export declare const DEFAULT_AI_CONFIG: { baseURL: string; apiKey: string; model: string; displayName: string; }; /** * 从用户输入中识别 AI 配置信息 */ export interface ParsedAiConfig { provider?: string; baseUrl?: string; apiKey?: string; model?: string; proxyUrl?: string; } /** * 识别用户输入中的 AI 配置信息 */ export declare function parseAiConfigFromInput(input: string): ParsedAiConfig | null; /** * 获取完整的 AI 配置(默认 + 解析出的) */ export declare function getDefaultAiConfig(userInput?: string): { baseURL: string; apiKey: string; model: string; displayName: string; parsedConfig?: ParsedAiConfig; }; /** * 保存 AI 配置到 Pod * * 注意:这是一个占位实现,实际的保存逻辑需要调用 PodChatKitStore 的方法 * 或通过 API 端点进行保存 */ export declare function saveAiConfigToPod(_podBaseUrl: string, config: ParsedAiConfig, _authenticatedFetch: typeof fetch, _webId?: string): Promise<{ success: boolean; message: string; }>;