NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 本地ollama无法聊天

Open liujvnes opened this issue 1 year ago • 5 comments

Bug Description

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

Steps to Reproduce

本地ollama无法聊天

Expected Behavior

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

Screenshots

image image image image

Deployment Method

  • [ ] Docker
  • [ ] Vercel
  • [ ] Server

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

liujvnes avatar May 16 '24 14:05 liujvnes

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


Title: [Bug] Local ollama cannot chat

Issues-translate-bot avatar May 16 '24 14:05 Issues-translate-bot

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

Dean-YZG avatar May 20 '24 08:05 Dean-YZG

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

Issues-translate-bot avatar May 20 '24 08:05 Issues-translate-bot

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

bigybin avatar May 21 '24 16:05 bigybin

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


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

Issues-translate-bot avatar May 21 '24 16:05 Issues-translate-bot

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

adhu2018 avatar Jun 13 '24 14:06 adhu2018

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.

Issues-translate-bot avatar Jun 13 '24 14:06 Issues-translate-bot

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

aceliuchanghong avatar Jun 14 '24 11:06 aceliuchanghong