raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.28k stars 2.98k forks source link

[Ollama AI] Does not connect to localhost:11434 #13919

Open tgunr opened 1 month ago

tgunr commented 1 month ago

Extension

https://www.raycast.com/massimiliano_pasquini/raycast-ollama

Raycast Version

1.80.0

macOS Version

14.5

Description

Ollama is installed and running. I can use ollama list and ollama run llama3.1:latest model in terminal just fine. After installing the Raycast extension, I tried using manage models and get "Local Server" the operation was aborted. image

If I try to use "Pull Model" with llama3.1:latest I get image

The model llama3.1:latest is already installed.

What am I doing wrong?

Steps To Reproduce

Install ollama Install extension Try to use oolama

Current Behaviour

Cannot connect

Expected Behaviour

Expected I could connect to localhost:11434

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @MassimilianoPasquini97 you might want to have a look.

💡 Author and Contributors commands The author and contributors of `massimiliano_pasquini/raycast-ollama` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
tgunr commented 1 month ago

Tried to build the extension and when selecting "Manage Models" I got this:

` % npm run dev (main)extensions

dev ray develop

info - entry points [src/ollama-chat.tsx src/ollama-browser-summarize.tsx src/ollama-casual.tsx src/ollama-code-explain.tsx src/ollama-confident.tsx src/ollama-explain.tsx src/ollama-fix-spelling-grammar.tsx src/ollama-friendly.tsx src/ollama-image-describe.tsx src/ollama-image-to-text.tsx src/ollama-improve-writing.tsx src/ollama-longer.tsx src/ollama-professional.tsx src/ollama-shorter.tsx src/ollama-translate.tsx src/ollama-tweet.tsx src/ollama-models.tsx src/ollama-custom-create.tsx src/ollama-custom-command.tsx] info - compiled entry points info - generated extension's TypeScript definitions ready - built extension successfully 03:04:54.895 Warning: Each child in a list should have a unique "key" prop.

Check the render method of Command. See https://reactjs.org/link/warning-keys for more information. at hu (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:20:21000) at Command (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:14649:10) at _r (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:8:2593) at ray-navigation-stack at Eo (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:8:2094) at Suspense at Nr (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:7:2335) at ray-root at Oi (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:8:3103) 03:04:55.038 Error: The operation was aborted. 03:04:55.038 Stack trace: AbortError: The operation was aborted. at abort (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13244:21) at EventTarget.abortAndFinalize (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13259:7) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20) at EventTarget.dispatchEvent (node:internal/event_target:755:26) at abortSignal (node:internal/abort_controller:370:10) at Timeout._onTimeout (node:internal/abort_controller:127:7) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) 03:04:55.039 Error: The operation was aborted. 03:04:55.040 Stack trace: AbortError: The operation was aborted. at abort (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13244:21) at EventTarget.abortAndFinalize (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13259:7) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20) at EventTarget.dispatchEvent (node:internal/event_target:755:26) at abortSignal (node:internal/abort_controller:370:10) at Timeout._onTimeout (node:internal/abort_controller:127:7) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) 03:04:55.042 Error: The operation was aborted. 03:04:55.042 Stack trace: AbortError: The operation was aborted. at abort (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13244:21) at EventTarget.abortAndFinalize (/Users/davec/.config/raycast/extensions/raycast-ollama/ollama-models.js:13259:7) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20) at EventTarget.dispatchEvent (node:internal/event_target:755:26) at abortSignal (node:internal/abort_controller:370:10) at Timeout._onTimeout (node:internal/abort_controller:127:7) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7)`

husniadil commented 1 month ago

I was unable to replicate this issue, please refer to my screencast below:

ollama

raycastbot commented 3 days ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊