dialog_df: Create dialog data.frame

View source: R/dialog.R

dialog_dfR 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")


oaii documentation built on May 29, 2024, 5:25 a.m.

Related to dialog_df in oaii...