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

Constructor "headers" option is ignored when using Custom Client. #161

Closed
davloperez opened this issue Nov 11, 2024 · 2 comments
Closed

Comments

@davloperez
Copy link

The headers field of the Ollama constructor function options (AKA Config in interfaces.ts) is completely ignored in this constructor code, and thus, it is not taken into account when performing fetch from other methods. It probably should be stored in this.config.headers.

This makes, for example, impossible to manually specify any Authorization custom header when performing our /api/generate loved requests :(

@davloperez
Copy link
Author

Sorry, I didn't noticed that it has been fixed a couple days ago in #158

Waiting for the new version to have the fix.
Thanks!

@ParthSareen
Copy link
Contributor

Just cut a new release! Should be available now 😄

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

2 participants