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

Function getMessageText

ai/ai.ts:490–494  ·  view source on GitHub ↗
(m?: Api.Message | null)

Source from the content-addressed store, hash-verified

488 const responsesBaseUrl = normalizeOpenAIBaseUrl(currentUrl);
489 return resolveEndpointUrl(responsesBaseUrl, "responses");
490};
491
492const getMessageText = (m?: Api.Message | null): string => {
493 if (!m) return "";
494 const text = (m as any).message ?? (m as any).text ?? "";
495 return typeof text === "string" ? text : "";
496};
497

Callers 6

askFromReplyMethod · 0.70
handleQuestionMethod · 0.70
executeMethod · 0.70
executeMethod · 0.70
executeMethod · 0.70
AIPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected