Skip to content

Commit 849add2

Browse files
authoredApr 27, 2025··
Fix ollama 403 error in release build (#588)
1 parent 7f80a45 commit 849add2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tauri-plugin-decorum = "1.1.1"
5656
tauri-plugin-deep-link = "2"
5757
tauri-plugin-dialog = "2"
5858
tauri-plugin-fs = "2"
59-
tauri-plugin-http = "2"
59+
tauri-plugin-http = { version = "2", features = ["unsafe-headers"] }
6060
tauri-plugin-opener = "2"
6161
tauri-plugin-store = "2"
6262

‎packages/utils/src/ai.ts

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const getModel = async () => {
2323
baseURL: api_base,
2424
apiKey: api_key ?? "SOMETHING_NON_EMPTY",
2525
fetch: customFetch,
26+
headers: {
27+
"Origin": "http://localhost:1420",
28+
},
2629
});
2730

2831
const customModel = await connectorCommands.getCustomLlmModel();

0 commit comments

Comments
 (0)
Please sign in to comment.