View source: R/sse_aggregator.R
| map_openai_chunk | R Documentation |
Translates an OpenAI Chat Completions SSE data chunk into the appropriate SSEAggregator method calls.
map_openai_chunk(data, done, agg)
data |
Parsed JSON data from SSE event (or NULL if done). |
done |
Logical, TRUE if stream is complete. |
agg |
An SSEAggregator instance. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.