(url)
| 545 | request: { |
| 546 | headers: window.networkLogger.sanitizeHeaders(headers), |
| 547 | body: body |
| 548 | }, |
| 549 | error: error.message |
| 550 | }); |
| 551 | } |
| 552 | |
| 553 | throw error; |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | async sendCompletion(messages, modelId, apiKey) { |
| 558 | try { |
| 559 | const result = await this.sendCompletionStrict(messages, modelId, apiKey); |
| 560 | return result.content; |
| 561 | } catch (error) { |
| 562 | return `Error: ${error.message}. Using simulated response instead: This is a fallback response since the API call failed.`; |
nothing calls this directly
no outgoing calls
no test coverage detected