Geeks

jameschetwood/openai-function-calling

Primary LanguageTypeScript

  • openai-function-calling GitHub
  • MarkdownReadme
  • 0Issues
  • 1Stargazer
  • 1Watcher

OpenAI Function Calling + Streaming JSON issue

Steps

Set OPENAI_API_KEY in .env.local.

Non-streaming API working correctly

API: http://localhost:3000/not-streamed/api/chat1

Page to test this: http://localhost:3000/not-streamed

Streaming API returns invalid JSON

API: http://localhost:3000/streamed/api/chat2

Page to test this: http://localhost:3000/streamed

Share to

Contact site admin: Geeks.