mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Query param bug... (#21017)
Update openai.mdx A little bug in the code...
This commit is contained in:
1 file changed
+1
-1
@@ -37,7 +37,7 @@ We'll design the function to take your user's query (via POST request) and forwa
|
||||
import OpenAI from 'https://deno.land/x/openai@v4.24.0/mod.ts'
|
||||
|
||||
Deno.serve(async (req) => {
|
||||
const query = await req.json()
|
||||
const { query } = await req.json()
|
||||
const apiKey = Deno.env.get('OPENAI_API_KEY')
|
||||
const openai = new OpenAI({
|
||||
apiKey: apiKey,
|
||||
|
||||
Reference in new issue
Block a user