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