(newAnnotations)
| 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, |