We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b8f616 commit e4142e9Copy full SHA for e4142e9
1 file changed
src/ollamaManager.ts
@@ -1,4 +1,3 @@
1
-import console from "console"
2
import { Ollama } from "ollama"
3
import { window, workspace } from "vscode"
4
@@ -23,7 +22,7 @@ export class OllamaManager {
23
22
24
try {
25
const newHost = new URL(inputHostname)
26
- hostname = newHost.toString()
+ hostname = newHost.toString().replace(/\/+$/, "")
27
} catch (error) {
28
window.showErrorMessage("Invalid hostname URL. Please enter a valid URL (eg http://localhost:11434).")
29
return this.ollamaModelConfig(includeHostnameSelection)
0 commit comments