check supabase token before retrieving context (#99)
This commit is contained in:
@@ -251,7 +251,10 @@ export function registerChatStreamHandlers() {
|
||||
content: message.content,
|
||||
}));
|
||||
let systemPrompt = SYSTEM_PROMPT;
|
||||
if (updatedChat.app?.supabaseProjectId) {
|
||||
if (
|
||||
updatedChat.app?.supabaseProjectId &&
|
||||
settings.supabase?.accessToken?.value
|
||||
) {
|
||||
systemPrompt +=
|
||||
"\n\n" +
|
||||
SUPABASE_AVAILABLE_SYSTEM_PROMPT +
|
||||
|
||||
Reference in New Issue
Block a user