diff --git a/src/config/setting.ts b/src/config/setting.ts index 0110ac8..4731888 100644 --- a/src/config/setting.ts +++ b/src/config/setting.ts @@ -26,7 +26,8 @@ export const AI_API_URL = // Note: browsers cannot call http from an https site (mixed-content); prefer same-origin proxy. export const OLLAMA_API_URL = import.meta.env.VITE_OLLAMA_API_URL || - (import.meta.env.DEV ? '/proxy' : 'http://47.119.165.234:11434'); + // Prefer same-origin reverse proxy in production too (avoid https mixed-content). + '/proxy'; /** * 以下配置一般不需要修改