Skip to content

Commit 46a1b14

Browse files
committed
Upgrade: Electron builder from v25 -> v26
1 parent eac7257 commit 46a1b14

File tree

4 files changed

+241
-372
lines changed

4 files changed

+241
-372
lines changed

app/main.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from 'path';
44
import * as fs from 'fs';
55
import * as os from 'os';
66
import { execSync } from 'child_process';
7-
import axios from 'axios';
7+
// import axios from 'axios';
88

99
// Main window reference
1010
let win: BrowserWindow | null = null;
@@ -180,34 +180,34 @@ function createWindow(): BrowserWindow {
180180
return win;
181181
}
182182

183-
async function testCallAnthropic() {
184-
try {
185-
const response = await axios.post("https://api.anthropic.com/v1/messages", {
186-
headers: {
187-
"x-api-key": "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",
188-
"Content-Type": "application/json",
189-
"anthropic-version": "2023-06-01",
190-
"anthropic-dangerous-direct-browser-access": "true",
191-
},
192-
body: JSON.stringify({
193-
messages: [{
194-
role: "user",
195-
content: "Hello, how are you?"
196-
}],
197-
model: "claude-3-5-sonnet-20241022",
198-
max_tokens: 1024,
199-
}),
200-
});
183+
// async function testCallAnthropic() {
184+
// try {
185+
// const response = await axios.post("https://api.anthropic.com/v1/messages", {
186+
// headers: {
187+
// "x-api-key": "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",
188+
// "Content-Type": "application/json",
189+
// "anthropic-version": "2023-06-01",
190+
// "anthropic-dangerous-direct-browser-access": "true",
191+
// },
192+
// body: JSON.stringify({
193+
// messages: [{
194+
// role: "user",
195+
// content: "Hello, how are you?"
196+
// }],
197+
// model: "claude-3-5-sonnet-20241022",
198+
// max_tokens: 1024,
199+
// }),
200+
// });
201201

202-
console.log(response);
202+
// console.log(response);
203203

204-
const data = response.data;
205-
return data;
206-
} catch (error) {
207-
console.error(error);
208-
return null;
209-
}
210-
}
204+
// const data = response.data;
205+
// return data;
206+
// } catch (error) {
207+
// console.error(error);
208+
// return null;
209+
// }
210+
// }
211211

212212
/**
213213
* Get system information including OS, CPU, and RAM

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"ai": "^4.2.10",
2626
"axios": "^1.8.4",
2727
"dotenv": "^16.4.7",
28+
"electron-builder": "26.0.12",
2829
"katex": "^0.16.21",
2930
"lucide-react": "^0.344.0",
3031
"prism-themes": "^1.9.0",
@@ -49,7 +50,6 @@
4950
"autoprefixer": "^10.4.18",
5051
"concurrently": "^9.1.2",
5152
"electron": "34.2.0",
52-
"electron-builder": "25.1.8",
5353
"electron-debug": "4.1.0",
5454
"electron-reloader": "1.2.3",
5555
"eslint": "^9.9.1",

0 commit comments

Comments
 (0)