feedback | R Documentation |
Simple chat_request wrapper - send text to chat and get response.
feedback(question, model = "gpt-3.5-turbo", max_tokens = NULL, print = TRUE)
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 |
string, chat answer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.