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",