It is important to notice that ollama does not support tools/function calling, so the methods using those won't work as expected.
At the moment I worked on the "translation" of the adapter taking the openai one as the base, but I have some Typescript errors I am not completely sure how to work out.
I used function overloads in types.ts but it does not seem enough.
⚠️ Please bare in mind the code has not been tested yet, I was trying to get it error free first.
Adding a ollama adapter using https://github.com/ollama/ollama-js .
It is important to notice that ollama does not support tools/function calling, so the methods using those won't work as expected.
At the moment I worked on the "translation" of the adapter taking the openai one as the base, but I have some Typescript errors I am not completely sure how to work out. I used function overloads in types.ts but it does not seem enough.
⚠️ Please bare in mind the code has not been tested yet, I was trying to get it error free first.