From 3f15d035f6173cdc58b72310d9af893c9e8e4fd1 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Sun, 3 Mar 2024 19:51:44 +0100 Subject: [PATCH] refactor: remove console.log --- src/ai/OpenAIRequest.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ai/OpenAIRequest.ts b/src/ai/OpenAIRequest.ts index e17a6e1..dac73b4 100644 --- a/src/ai/OpenAIRequest.ts +++ b/src/ai/OpenAIRequest.ts @@ -52,14 +52,10 @@ export function OpenAIRequest( throw new Error(`Model ${model.name} not found with any provider.`); } - console.log( - `Making request to ${modelProvider?.name} at ${modelProvider.endpoint} with model ${model.name}` - ); - try { const restoreCursor = preventCursorChange(); const _response = requestUrl({ - url: `${modelProvider?.endpoint}/chat/completions`, + url: `${modelProvider.endpoint}/chat/completions`, method: "POST", headers: { "Content-Type": "application/json",