Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/actions/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ export async function getSystemPrompt(
}

try {
const prompt = await redis.get<string>(`system_prompt:${userId}`)
return prompt
const prompt = (await redis.get<string>(`system_prompt:${userId}`)) || ''
const locationGuessingInstruction =
'\nWhen an image is added to the context, you should also try to guess where the image was taken.'
return prompt + locationGuessingInstruction
} catch (error) {
console.error('getSystemPrompt: Error retrieving system prompt:', error)
return null
Expand Down