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",