2
0

🚸 (openai) Add missing credentials error to chat completion streamer

This commit is contained in:
Baptiste Arnaud
2023-06-05 09:03:54 +02:00
parent 61fd44f768
commit 8822e4e7e4

View File

@@ -66,6 +66,8 @@ const handler = async (req: Request) => {
messages
)
if (!stream) return new Response('Missing credentials', { status: 400 })
return new Response(stream, {
status: 200,
headers: {