dialog_df {oaii} | R Documentation |
Create dialog data.frame
Description
Create dialog data.frame
Usage
dialog_df(content, role = "user", finish_reason = "stop")
Arguments
content |
string, message content |
role |
string, message role ("owner") |
finish_reason |
see https://platform.openai.com/docs/guides/gpt/chat-completions-response-format |
Value
A one-row data.frame with columns: 'content', 'role' and 'finish_reason'
Examples
dialog_df("some text message")
dialog_df("some another text message", role = "assistant")
[Package oaii version 0.5.0 Index]