feedback: Feedback - ask chat and receive reply

View source: R/api_chat.R

feedbackR Documentation

Feedback - ask chat and receive reply

Description

Simple chat_request wrapper - send text to chat and get response.

Usage

feedback(question, model = "gpt-3.5-turbo", max_tokens = NULL, print = TRUE)

Arguments

question

string, question text

model

string, ID of the model to use. See the model endpoint compatibility table https://platform.openai.com/docs/models/model-endpoint-compatibility for details on which models work with the Chat API.

max_tokens

NULL/int, the maximum number of tokens to generate in the chat completion

print

flag, If TRUE, print the answer on the console

Value

string, chat answer


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

Related to feedback in oaii...