Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX]macbook m2 Ollama / Khoj error #813

Closed
12 tasks
moffefei opened this issue Jun 12, 2024 · 10 comments
Closed
12 tasks

[FIX]macbook m2 Ollama / Khoj error #813

moffefei opened this issue Jun 12, 2024 · 10 comments
Labels
fix Fix something that isn't working as expected

Comments

@moffefei
Copy link

docker khoj-server log↓

khoj ollama server error log.md

To Reproduce

follow the steps : https://docs.khoj.dev/miscellaneous/ollama/

Screenshots

image

Platform

  • Server:
    • Cloud-Hosted (https://app.khoj.dev)
    • [✅ ] Self-Hosted Docker
    • Self-Hosted Python package
    • Self-Hosted source code
  • Client:
    • Obsidian
    • Emacs
    • Desktop app
    • Web browser
    • WhatsApp
  • OS:
    • Windows
    • [✅ ] macOS
    • Linux
    • Android
    • iOS

If self-hosted

  • Server Version :1.13.0
@moffefei moffefei added the fix Fix something that isn't working as expected label Jun 12, 2024
@sabaimran
Copy link
Member

sabaimran commented Jun 12, 2024

Hey @moffefei , can you share a screenshot of your ollama chat config with me?

@moffefei
Copy link
Author

Hey @moffefei , can you share a screenshot of your ollama chat config with me?
here the ollama chat config:

image image

@moffefei
Copy link
Author

Hey @moffefei , can you share a screenshot of your ollama chat config with me?

upgraded docker & ollama already.

@sabaimran
Copy link
Member

No, I mean inside khoj. I'd like to see the open ai processor conversation settings in the admin page.

@moffefei
Copy link
Author

No, I mean inside khoj. I'd like to see the open ai processor conversation settings in the admin page.不,我是说在 khoj 里面。我想在管理页面中查看打开的人工智能处理器对话设置。
sorry, but this page?

截屏2024-06-12 12 11 06

@moffefei
Copy link
Author

try much but not fixed

@moffefei moffefei reopened this Jun 12, 2024
@sabaimran
Copy link
Member

No, I mean in the admin panel, which should be here: http://localhost:42110/server/admin/database/openaiprocessorconversationconfig/
Screenshot 2024-06-12 at 16 46 47

Make sure the URL you're using is http://localhost:11434/v1/. The /v1 is important.

@mominfaruk
Copy link

mominfaruk commented Jun 12, 2024

Same issue is happening for macbook m1
Screenshot 2024-06-12 at 6 07 59 PM

@adityanemali
Copy link

Upgrading ollama worked for me.

curl -fsSL https://ollama.com/install.sh | sh

@moffefei
Copy link
Author

No, I mean in the admin panel, which should be here: http://localhost:42110/server/admin/database/openaiprocessorconversationconfig/ Screenshot 2024-06-12 at 16 46 47

Make sure the URL you're using is http://localhost:11434/v1/. The /v1 is important.

fixed it!Because deployed 'ollama' both in Docker and locally, there seemed to be an environment conflict. After replacing 'http://localhost:11434/v1/' with 'http://host.docker.internal:11434/v1/', resolved the issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something that isn't working as expected
Projects
None yet
Development

No branches or pull requests

4 participants