threads | R Documentation |
threads Class
threads Class
openaistream::openai
-> threads
create()
Create a thread.
threads$create(..., verbosity = 0)
...
Additional parameters as required by the OpenAI API.For example:messages;name;metadata
verbosity
numeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
A thread object.
retrieve()
Retrieves a thread.
threads$retrieve(thread_id, verbosity = 0)
thread_id
character Required. The ID of the thread to retrieve.
verbosity
numeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
The thread object matching the specified ID.
modify()
Modifies a thread.
threads$modify(thread_id, ..., verbosity = 0)
thread_id
The ID of the thread to modify. Only the metadata can be modified.
...
Additional parameters as required by the OpenAI API.For example:metadata
verbosity
numeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
The modified thread object matching the specified ID.
delete()
Delete a thread.
threads$delete(thread_id, verbosity = 0)
thread_id
character Required The ID of the thread to delete.
verbosity
numeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
Deletion status.
clone()
The objects of this class are cloneable with this method.
threads$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.