From de7ba70993e5b8feb695c3f118312283555af8db Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 9 Jan 2026 23:32:55 +0100 Subject: [PATCH] debug log improved. now commented out --- js/api/anthropic.js | 4 ++-- js/api/google_gemini.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/api/anthropic.js b/js/api/anthropic.js index 2fa9ae78..9d44a99e 100644 --- a/js/api/anthropic.js +++ b/js/api/anthropic.js @@ -87,8 +87,6 @@ export class Anthropic { fetchResponse = async (messages) => { - // console.log(">>>>>>>>>>> Anthropic API request: " + JSON.stringify(messages)); - try { let claude_body = { @@ -103,6 +101,8 @@ export class Anthropic { if(this.temperature != '' && !Number.isNaN(tempFloat)) claude_body.temperature = tempFloat; + // console.log(">>>>>>>>>>>>>>>>> [ThunderAI] Anthropic API request: " + JSON.stringify(claude_body)); + const response = await fetch("https://api.anthropic.com/v1/messages", { method: "POST", headers: { diff --git a/js/api/google_gemini.js b/js/api/google_gemini.js index caea5eb0..91e764bb 100644 --- a/js/api/google_gemini.js +++ b/js/api/google_gemini.js @@ -116,7 +116,7 @@ export class GoogleGemini { google_gemini_body.generationConfig.temperature = tempFloat; } - // console.log("[ThunderAI] Google Gemini API request: " + JSON.stringify(google_gemini_body)); + // console.log(">>>>>>>>>>>>>>>>> [ThunderAI] Google Gemini API request: " + JSON.stringify(google_gemini_body)); const response = await fetch("https://generativelanguage.googleapis.com/v1beta/models/" + this.model + ":" + (this.stream ? 'streamGenerateContent?alt=sse&' : 'generateContent?') + "key=" + this.apiKey, { method: "POST",