Closed davloperez closed 1 week ago
Sorry, I didn't noticed that it has been fixed a couple days ago in https://github.com/ollama/ollama-js/pull/158
Waiting for the new version to have the fix. Thanks!
Just cut a new release! Should be available now 😄
The
headers
field of the Ollama constructor function options (AKAConfig
in interfaces.ts) is completely ignored in this constructor code, and thus, it is not taken into account when performingfetch
from other methods. It probably should be stored inthis.config.headers
.This makes, for example, impossible to manually specify any Authorization custom header when performing our
/api/generate
loved requests :(