Support Ollama
Feature Request
Summary
Support Ollama's OpenAI compatible API; Please see https://ollama.com/blog/openai-compatibility.
I tried the following, but it didn't work with iTerm2 3.5.0beta24 (macOS 14.2.1)
- in AI setting, set OpenAI API key to ollama, Model to ollama/llama3
- in Advanced Experimental Features, set URL for AI API to http://localhost:11434/v1/chat/completions
It gives the following error when trying to use the AI mode with a prompt "list all files in the current folder"
"There was a problem with the AI query: Error from OpenAI: [] is too short - 'messages'"
Edited by Chihpo