Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Loading