MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / addAnnotations

Method addAnnotations

chat/api.js:569–579  ·  view source on GitHub ↗
(newAnnotations)

Source from the content-addressed store, hash-verified

567 const normalizedPrompt = this.extractTextContent(prompt)
568 .replace(/\s+/g, ' ')
569 .trim()
570 .slice(0, TITLE_SUMMARY_MAX_INPUT_CHARS);
571
572 if (!normalizedPrompt) {
573 return '';
574 }
575
576 const access = this._requestAccess;
577 const url = `${access.baseUrl}/chat/completions`;
578 const headers = access.headers;
579 const titleModelId = options.modelId || this.options.titleModelId || TITLE_SUMMARY_MODEL_ID;
580
581 const body = {
582 model: titleModelId,

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected