carlrobertoh / CodeGPT

JetBrains extension providing access to state-of-the-art LLMs, such as GPT-4, Claude 3, Code Llama, and others, all for free
https://codegpt.ee
Apache License 2.0
885 stars 184 forks source link

Ollama Provider: Support for Authentication or Headers #580

Closed sburnicki closed 2 weeks ago

sburnicki commented 1 month ago

Describe the need of your request

The Ollama Provider already allows to set the Base host, so I can use a Ollama instance on a remote server. However, if the remote server has some kind of authentication (e.g. in a proxy) I cannot set it as in LLaMA C/C++ (Local) or Custom OpenAI provider.

This way it would be possible to use a remote server with Ollama and hopefully be able to easily switch between the models.

Proposed solution

Also support Authentication or custom headers for the Ollama Provider.

Additional context

No response