mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
12 lines
354 B
TypeScript
12 lines
354 B
TypeScript
export function askAiPrompt(pageUrl: string) {
|
|
return `Read from ${pageUrl} so I can ask questions about its contents`
|
|
}
|
|
|
|
export function askAiUrls(pageUrl: string) {
|
|
const prompt = encodeURIComponent(askAiPrompt(pageUrl))
|
|
return {
|
|
chatgpt: `https://chatgpt.com/?hint=search&q=${prompt}`,
|
|
claude: `https://claude.ai/new?q=${prompt}`,
|
|
}
|
|
}
|