ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
72.69k stars 57.75k forks source link

[Bug] 本地ollama无法聊天 #4715

Open liujvnes opened 1 month ago

liujvnes commented 1 month ago

Bug Description

本地ollama无法聊天,我不知道哪里设置错误,请帮帮我!

Steps to Reproduce

本地ollama无法聊天

Expected Behavior

本地ollama无法聊天,其它应用可以

Screenshots

image image image image

Deployment Method

Desktop OS

windows11

Desktop Browser

edge

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Local ollama cannot chat

Dean-YZG commented 1 month ago

将接口地址修改回/api/openai,在项目中增加.env文件,并添加 BASE_URL=http://localhost:11434

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Change the interface address back to /api/openai, add the .env file to the project, and add BASE_URL=http://localhost:11434

yangbin8 commented 1 month ago

解决了吗,我的问题和你类似

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Have you solved it? My problem is similar to yours.

adhu2018 commented 3 weeks ago

这是跨域的问题,在ollama中配置 OLLAMA_ORIGINS=* 就行

Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


This is a cross-domain problem. Just configure OLLAMA_ORIGINS=* in ollama.

aceliuchanghong commented 3 weeks ago

window下面配置OLLAMA_HOST=0.0.0.0,OLLAMA_ORIGINS=*,重启服务就可以了