mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
fix: use safeFetch for Copilot Plus to bypass browser TLS errors (#2255)
Browser's native fetch() fails with net::ERR_CERT_AUTHORITY_INVALID when calling models.brevilabs.com. Using safeFetch routes through Obsidian's requestUrl (Node/Electron layer), bypassing browser-level TLS validation. Fixes #2250 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d7d54d2a34
commit
fcac972bb2
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ export default class ChatModelManager {
|
|||
apiKey: await getDecryptedKey(settings.plusLicenseKey),
|
||||
configuration: {
|
||||
baseURL: BREVILABS_MODELS_BASE_URL,
|
||||
fetch: customModel.enableCors ? safeFetch : undefined,
|
||||
fetch: safeFetch,
|
||||
},
|
||||
},
|
||||
[ChatModelProviders.MISTRAL]: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue