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

Function buildChatLink

sum/sum.ts:384–391  ·  view source on GitHub ↗
(chatId: string, username?: string)

Source from the content-addressed store, hash-verified

382 headers: {
383 Authorization: `Bearer ${apiKey}`,
384 "Content-Type": "application/json",
385 },
386 timeout,
387 },
388 );
389 const content = response.data?.choices?.[0]?.message?.content;
390 if (typeof content !== "string" || !content.trim())
391 throw new Error("Chat Completions 返回内容为空");
392 return content.trim();
393}
394

Callers 1

SummaryPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected