🚸 (openai) Add missing credentials error to chat completion streamer
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user