magicalne / nvim.ai

Inspired by Zed AI, it allows you to chat with your buffers, insert code with an inline assistant, and leverage various LLM providers for context-aware AI assistance.
Apache License 2.0
121 stars 2 forks source link

Generalize OpenAI Provider to Support Local Compatible APIs #25

Closed tracerte closed 2 months ago

tracerte commented 2 months ago

Modified the OpenAI provider to check if the provider is local and if it is, disregard the inclusion of an authorization header. Tested with llamacpp and koboldcpp.