We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f80a45 commit 849add2Copy full SHA for 849add2
Cargo.toml
@@ -56,7 +56,7 @@ tauri-plugin-decorum = "1.1.1"
56
tauri-plugin-deep-link = "2"
57
tauri-plugin-dialog = "2"
58
tauri-plugin-fs = "2"
59
-tauri-plugin-http = "2"
+tauri-plugin-http = { version = "2", features = ["unsafe-headers"] }
60
tauri-plugin-opener = "2"
61
tauri-plugin-store = "2"
62
packages/utils/src/ai.ts
@@ -23,6 +23,9 @@ const getModel = async () => {
23
baseURL: api_base,
24
apiKey: api_key ?? "SOMETHING_NON_EMPTY",
25
fetch: customFetch,
26
+ headers: {
27
+ "Origin": "http://localhost:1420",
28
+ },
29
});
30
31
const customModel = await connectorCommands.getCustomLlmModel();
0 commit comments