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)

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