The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs-gpt): prompt indentation
Greg Richardsonc4483ce5816d
diff --git a/supabase/functions/clippy-search/index.ts b/supabase/functions/clippy-search/index.tsindex e2c52a51d89..5ca3b422246 100644--- a/supabase/functions/clippy-search/index.ts+++ b/supabase/functions/clippy-search/index.ts@@ -1,7 +1,7 @@import { serve } from 'https://deno.land/[email protected]/http/server.ts'import 'https://deno.land/x/[email protected]/mod.ts'import { createClient } from 'https://esm.sh/@supabase/[email protected]'-import { oneLine, stripIndent } from 'https://esm.sh/[email protected]'+import { codeBlock, oneLine } from 'https://esm.sh/[email protected]'import GPT3Tokenizer from 'https://esm.sh/[email protected]'import { Configuration, CreateCompletionRequest, OpenAIApi } from 'https://esm.sh/[email protected]'import { ApplicationError, UserError } from '../common/errors.ts'@@ -107,7 +107,7 @@ serve(async (req) => {contextText += `${content.trim()}\n---\n`}- const prompt = stripIndent`+ const prompt = codeBlock`${oneLine`You are a very enthusiastic Supabase representative who lovesto help people! Given the following sections from the Supabase