inference
inference copied to clipboard
ENH: Support stream_options for OpenAI create chat completion
Is your feature request related to a problem? Please describe
OpenAI SDK released v1.26.0 added a stream_options for create chat completion when stream=True, see
https://github.com/openai/openai-python/releases/tag/v1.26.0
and
https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream_options
We could follow the behaviour.