MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / callAI

Function callAI

uai/uai.ts:188–193  ·  view source on GitHub ↗
(provider: Provider, prompt: string, content: string, timeout: number)

Source from the content-addressed store, hash-verified

186}
187
188// ========== 消息收集 ==========
189type MessageData = { time: string; sender: string; text: string };
190
191// 将各种 ID 类型统一转换为字符串进行比较
192function normalizeId(id: any): string {
193 if (id === null || id === undefined) return "";
194 // 处理 BigInt
195 if (typeof id === "bigint") return id.toString();
196 // 处理对象(可能是 Api.PeerUser 等)

Callers 1

UAIPluginClass · 0.85

Calls 2

callGeminiFunction · 0.70
callOpenAIFunction · 0.70

Tested by

no test coverage detected