debug log improved. now commented out
This commit is contained in:
parent
0206e421ae
commit
de7ba70993
2 changed files with 3 additions and 3 deletions
|
|
@ -87,8 +87,6 @@ export class Anthropic {
|
||||||
|
|
||||||
fetchResponse = async (messages) => {
|
fetchResponse = async (messages) => {
|
||||||
|
|
||||||
// console.log(">>>>>>>>>>> Anthropic API request: " + JSON.stringify(messages));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
let claude_body = {
|
let claude_body = {
|
||||||
|
|
@ -103,6 +101,8 @@ export class Anthropic {
|
||||||
|
|
||||||
if(this.temperature != '' && !Number.isNaN(tempFloat)) claude_body.temperature = tempFloat;
|
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", {
|
const response = await fetch("https://api.anthropic.com/v1/messages", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ export class GoogleGemini {
|
||||||
google_gemini_body.generationConfig.temperature = tempFloat;
|
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, {
|
const response = await fetch("https://generativelanguage.googleapis.com/v1beta/models/" + this.model + ":" + (this.stream ? 'streamGenerateContent?alt=sse&' : 'generateContent?') + "key=" + this.apiKey, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue