// 此文件为向后兼容的重导出入口，实际实现已按职责拆分到 ./ai/ 目录：
// - payload-parser.ts   请求负载解析
// - api-key-crypto.ts   API Key 加密/解密
// - provider-config.ts  Provider 配置查询
// - client.ts           AI 客户端创建与调用
// - errors.ts           错误格式化
export { encryptAiApiKey, decryptAiApiKey } from "./ai/api-key-crypto"
export { createAiChatCompletion, testAiProviderById, testAiProviderConfig } from "./ai/client"
export { getAiErrorMessage } from "./ai/errors"
export { parseAiChatPayload, isRecord } from "./ai/payload-parser"
export type { AiChatRequest, ChatMessage, ChatRole } from "./ai/payload-parser"
