diff --git a/app/main.ts b/app/main.ts index 752f570..88f074f 100644 --- a/app/main.ts +++ b/app/main.ts @@ -184,35 +184,6 @@ function createWindow(): BrowserWindow { return win; } -// async function testCallAnthropic() { -// try { -// const response = await axios.post("https://api.anthropic.com/v1/messages", { -// headers: { -// "x-api-key": "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", -// "Content-Type": "application/json", -// "anthropic-version": "2023-06-01", -// "anthropic-dangerous-direct-browser-access": "true", -// }, -// body: JSON.stringify({ -// messages: [{ -// role: "user", -// content: "Hello, how are you?" -// }], -// model: "claude-3-5-sonnet-20241022", -// max_tokens: 1024, -// }), -// }); - -// console.log(response); - -// const data = response.data; -// return data; -// } catch (error) { -// console.error(error); -// return null; -// } -// } - /** * Get system information including OS, CPU, and RAM */