curly
curly copied to clipboard
Custom callback fn
- Use case is to be able to stream chatGPT api responses
- I wanted a way to be able to specify a custom callback function instead of buffering the entire response
- not sure if this is the best way to accomplish this? but it's at least working.