liboai
liboai copied to clipboard
can't get stream response since no examples.
Describe the feature or improvement you're requesting
I download the dev branch. and I built project from below example: https://github.com/D7EAD/liboai/blob/main/documentation/chat/examples/create_chat_completion.cpp
one problem is I don't know how to call "AppendStreamData". another problem is I don't know how to add "stream" parameter into request: oai.ChatCompletion->create
so, I can't get response as stream.
Waiting for update. thanks!
Additional context
No response
maybe you can try to use this: https://github.com/D7EAD/liboai/blob/1936bdc939a6ae4aa657c217677acc13cc58a869/liboai/include/components/completions.h#L44