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

Should use relative paths, not absolute #24

Closed
faibistes opened this issue Mar 19, 2024 · 3 comments
Closed

Should use relative paths, not absolute #24

faibistes opened this issue Mar 19, 2024 · 3 comments

Comments

@faibistes
Copy link

It should use api/generate, not /api/generate.
It doesn't work if ollama has a base path (like http:https://ollamaserver/ollama/api/generate), which is common with reverse proxies.

@kescherCode
Copy link

I've included this in my PR #22.

@kescherCode
Copy link

kescherCode commented Mar 27, 2024

Keep in mind that, if you were to use that PR, you'd have to make your api base URL end with a slash, or it will be overridden again. (so, in your case, http:https://ollamaserver/ollama/)

@awaescher
Copy link
Owner

Fixed with #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants