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

Ollama not working / check failing #438

Open
neonascent opened this issue Dec 9, 2024 · 2 comments
Open

Ollama not working / check failing #438

neonascent opened this issue Dec 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@neonascent
Copy link

What happened?

When I try to test ollama it fails, and running with summarize on gives: "url not allowed on the configured scope: http://127.0.0.1:11434/api/generate"

Steps to reproduce

  1. install ollama
  2. add model
  3. run Vibe 3.0 (also checked first 2.6.7)
  4. set up ollama as summary platform, enter URL, and model name.
  5. Run Check, or run transcription.

What OS are you seeing the problem on?

Window

Relevant log output

App Version: vibe 3.0.0
Commit Hash: d6348c6
Arch: x86_64
Platform: windows
Kernel Version: 10.0.19045
OS: windows
OS Version: 10.0.19045
Cuda Version: n/a
Models: ggml-distil-large-v3.bin, ggml-medium.bin
Default Model: "C:\\Users\\Vive\\AppData\\Local\\github.com.thewh1teagle.vibe\\ggml-distil-large-v3.bin"
Cargo features: vulkan


{"avx":{"enabled":true,"support":true},"avx2":{"enabled":true,"support":true},"f16c":{"enabled":true,"support":true},"fma":{"enabled":true,"support":true}}


<details>
<summary>logs</summary>


cmd: "l:\\vibe\\ffmpeg.exe" "-i" "L:\\phonerecordings\\recording-20241013-182351.mp3" "-ar" "16000" "-ac" "1" "-c:a" "pcm_s16le" "C:\\Users\\Vive\\AppData\\Local\\Temp\\vibe_temp_2024-12-10\\8814fbe9672f7004.wav" "-hide_banner" "-y" "-loglevel" "error"

</details>



<details>
<summary>logs</summary>

```console
cmd: "l:\\vibe\\ffmpeg.exe" "-i" "L:\\phonerecordings\\recording-20241013-182351.mp3" "-ar" "16000" "-ac" "1" "-c:a" "pcm_s16le" "C:\\Users\\Vive\\AppData\\Local\\Temp\\vibe_temp_2024-12-10\\8814fbe9672f7004.wav" "-hide_banner" "-y" "-loglevel" "error"
```
@neonascent neonascent added the bug Something isn't working label Dec 9, 2024
@thewh1teagle
Copy link
Owner

When I try to test ollama it fails, and running with summarize on gives: "url not allowed on the configured scope: http://127.0.0.1:11434/api/generate"

Try with

http://localhost:11434/api/generate

@dattas
Copy link

dattas commented Dec 13, 2024

I have the same issue, I have a central ollama server on my network. I get the same error as well:

url not allowed on the configured scope: https://ollama.int.<mydomain>.com/api/generate

From the server side, the server api is never called. I've verified that other applications are having no issue talking to the ollama server nor the model selected.

If I setup a ssh tunnel so that localhost:11434 is piped through to the server, then it works fine, but something in the application itself is blocking the url from reaching out to anything other than localhost.

Looking into it, it looks like it is a security feature of Tauri. https://github.com/thewh1teagle/vibe/blob/main/desktop/src-tauri/capabilities/main.json#L59 is too restrictive. I'm not sure of the security impacts, but since this is being requested on the front end instead of the back end, it would be nice if all urls were allowed and not just localhost or anthropic urls when calling to an LLM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants