chore: update docs for ollama endpoint (#992)

This commit is contained in:
Salman Mohammed
2025-01-31 13:47:41 -05:00
committed by GitHub
parent 7a427c6d46
commit 16df22f817
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ impl OllamaProvider {
}
async fn post(&self, payload: Value) -> Result<Value, ProviderError> {
// TODO: remove this later when the UI handles provider config refresh
// OLLAMA_HOST is sometimes just the 'host' or 'host:port' without a scheme
let base = if self.host.starts_with("http://") || self.host.starts_with("https://") {
self.host.clone()