e2b-dev / fragments

Open-source Next.js template for building apps that are fully generated by AI. By E2B.
https://fragments.e2b.dev
Apache License 2.0
2.42k stars 298 forks source link

fix(ollama): correct Ollama baseURL #28

Closed sammcj closed 1 month ago

sammcj commented 1 month ago

This PR fixes the Ollama baseURL to add the missing /api path, it will also try to lookup the host from $OLLAMA_HOST which is a standard variable for Ollama clients.

vercel[bot] commented 1 month ago

@sammcj is attempting to deploy a commit to the E2B Team on Vercel.

A member of the Team first needs to authorize it.

mishushakov commented 1 month ago

Isn't it set automatically already? We're using the Ollama provider

sammcj commented 1 month ago

It didn't work for me, it ignored $OLLAMA_HOST

We're using the Ollama provider

It looks like you're not using the official Ollama library (https://github.com/ollama/ollama-js)

mishushakov commented 1 month ago

Could you please open an issue on the Ollama provider repository? Feel like this repo is not the right place to address the issue.

Link: https://github.com/sgomez/ollama-ai-provider