liboai icon indicating copy to clipboard operation
liboai copied to clipboard

can't get stream response since no examples.

Open xkungxfu opened this issue 2 years ago • 1 comments

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

xkungxfu avatar Aug 20 '23 02:08 xkungxfu

maybe you can try to use this: https://github.com/D7EAD/liboai/blob/1936bdc939a6ae4aa657c217677acc13cc58a869/liboai/include/components/completions.h#L44

MaoJianwei avatar Oct 09 '25 02:10 MaoJianwei