From 217c7c787d30ed37a27054231cfbed23f8a2a0d1 Mon Sep 17 00:00:00 2001 From: Huftierchen Date: Tue, 9 Jan 2024 14:32:24 +0100 Subject: [PATCH] fixed typo in vsconfig get for api endpoint --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index af01506..8b1a2d2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -15,7 +15,7 @@ let responsePreview: boolean | undefined; function updateVSConfig() { VSConfig = vscode.workspace.getConfiguration("ollama-autocoder"); - apiEndpoint = VSConfig.get("apiEndpoint") || "http://localhost:11434/api/generate"; + apiEndpoint = VSConfig.get("endpoint") || "http://localhost:11434/api/generate"; apiModel = VSConfig.get("model") || "openhermes2.5-mistral:7b-q4_K_M"; // The model I tested with apiSystemMessage = VSConfig.get("system message"); numPredict = VSConfig.get("max tokens predicted") || 500;