agent icon indicating copy to clipboard operation
agent copied to clipboard

Ollama adapter integration

Open otrebu opened this issue 1 year ago • 0 comments

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.

otrebu avatar Mar 17 '24 12:03 otrebu