mirror of
https://github.com/SilasMarvin/lsp-ai.git
synced 2025-12-19 07:24:24 +01:00
use asDeref
This commit is contained in:
@@ -70,8 +70,8 @@ impl Ollama {
|
|||||||
.post(self
|
.post(self
|
||||||
.configuration
|
.configuration
|
||||||
.generate_endpoint
|
.generate_endpoint
|
||||||
.as_ref()
|
.as_deref()
|
||||||
.unwrap_or(&"http://localhost:11434/api/generate".to_string())
|
.unwrap_or("http://localhost:11434/api/generate")
|
||||||
)
|
)
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.header("Accept", "application/json")
|
.header("Accept", "application/json")
|
||||||
@@ -109,8 +109,8 @@ impl Ollama {
|
|||||||
.post(self
|
.post(self
|
||||||
.configuration
|
.configuration
|
||||||
.chat_endpoint
|
.chat_endpoint
|
||||||
.as_ref()
|
.as_deref()
|
||||||
.unwrap_or(&"http://localhost:11434/api/chat".to_string())
|
.unwrap_or("http://localhost:11434/api/chat")
|
||||||
)
|
)
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.header("Accept", "application/json")
|
.header("Accept", "application/json")
|
||||||
|
|||||||
Reference in New Issue
Block a user