File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -184,35 +184,6 @@ function createWindow(): BrowserWindow {
184184 return win ;
185185}
186186
187- // async function testCallAnthropic() {
188- // try {
189- // const response = await axios.post("https://api.anthropic.com/v1/messages", {
190- // headers: {
191- // "x-api-key": "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",
192- // "Content-Type": "application/json",
193- // "anthropic-version": "2023-06-01",
194- // "anthropic-dangerous-direct-browser-access": "true",
195- // },
196- // body: JSON.stringify({
197- // messages: [{
198- // role: "user",
199- // content: "Hello, how are you?"
200- // }],
201- // model: "claude-3-5-sonnet-20241022",
202- // max_tokens: 1024,
203- // }),
204- // });
205-
206- // console.log(response);
207-
208- // const data = response.data;
209- // return data;
210- // } catch (error) {
211- // console.error(error);
212- // return null;
213- // }
214- // }
215-
216187/**
217188 * Get system information including OS, CPU, and RAM
218189 */
You can’t perform that action at this time.
0 commit comments