Query param bug... (#21017)

Update openai.mdx

A little bug in the code...
This commit is contained in:
Vidz authored and GitHub committed 2024-02-05 19:03:44 +00:00
1 parent 6251935cd2
commit 71df1f18fd
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,