Method: OpenApiOpenAIClient::CreateCompletionRequest#stream
- Defined in:
- lib/openapi_openai/models/create_completion_request.rb
#stream ⇒ Object
Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a ‘data: [DONE]` message. [Example Python code](github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb).
38 39 40 |
# File 'lib/openapi_openai/models/create_completion_request.rb', line 38 def stream @stream end |