- prompt
A string containing the initial prompt or question to be sent
to the model. This is a required parameter.
- service
The AI service to be used for the request. If not explicitly
provided, this defaults to the value set in
getOption("gptstudio.service")
. If the option is not set, make sure to
provide this parameter to avoid errors.
- history
An optional parameter that can be used to include previous
interactions or context for the current session. Defaults to a system
message indicating "You are an R chat assistant".
- stream
A logical value indicating whether the interaction should be
treated as a stream for continuous interactions. If not explicitly
provided, this defaults to the value set in
getOption("gptstudio.stream")
.
- model
The specific model to use for the request. If not explicitly
provided, this defaults to the value set in getOption("gptstudio.model")
.
- skill
A character string indicating the skill or capability level of
the user. This parameter allows for customizing the behavior of the model
to the user. If not explicitly provided, this defaults to the value set in
getOption("gptstudio.skill")
.
- style
The coding style preferred by the user for code generation
tasks. This parameter is particularly useful when the task involves
generating code snippets or scripts. If not explicitly provided, this
defaults to the value set in getOption("gptstudio.code_style")
.
- task
The specific type of task to be performed, ranging from text
generation to code synthesis, depending on the capabilities of the model.
If not explicitly provided, this defaults to the value set in
getOption("gptstudio.task")
.
- custom_prompt
An optional parameter that provides a way to extend or
customize the initial prompt with additional instructions or context.
- process_response
A logical indicating whether to process the model's
response. If TRUE
, the response will be passed to
gptstudio_response_process()
for further processing. Defaults to FALSE
.
Refer to gptstudio_response_process()
for more details.
- ...
Reserved for future use.