Files
mp-vue/.env.development
赵忠林 b40326c3a9 feat(ai): 添加 AI 助手功能支持多模型对话
- 集成 OpenAI 兼容网关和 Ollama 原生 API 接口
- 新增 AI 测试页面支持流式对话和模型切换
- 配置开发环境同源反向代理解决浏览器 CORS 问题
- 添加环境变量配置支持 AI API 和 Ollama 接口设置
- 实现聊天历史记录、中断请求和参数调节功能
- 提供 Nginx 反向代理配置文档用于生产环境部署
2026-02-27 22:15:41 +08:00

17 lines
599 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

VITE_APP_NAME=后台管理(开发环境)
#VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
#VITE_API_URL=https://cms-api.s209.websoft.top/api
# AI 网关(开发环境建议走同源反代,避免浏览器 CORS
VITE_AI_API_URL=/ai-proxy
# Ollama 原生接口(开发环境建议走同源反代,避免浏览器 CORS
VITE_OLLAMA_API_URL=/ollama-proxy
# 如果 AI 网关启用了鉴权401 Not authenticated填入你的 Key仅供本机 dev server 使用)
# 不要加 VITE_ 前缀,避免被打包进前端
# AI_API_KEY=your_ai_api_key