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

Method normalizeUrl

chat/api.js:547–559  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

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.`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected