Skip to main content

chatgpt@1.0.1

prompt(message, options)

This adaptor exports the following from common:

cursor()
dataPath()
dataValue()
dateFns
each()
field()
fields()
fn()
lastReferenceValue()
merge()
sourceValue()

Functions

prompt

prompt(message, options) ⇒ operation

Prompt the GPT chat interface to respond

ParamTypeDescription
messagestringThe prompt
optionsPromptOptionsModel, Reasoning Effort, Response Form and other parameters (https://platform.openai.com/docs/api-reference/chat/create)

Example

prompt('Write a haiku about surfing.');

Interfaces

PromptOptions

Options provided to Chat Completions Create (https://platform.openai.com/docs/api-reference/chat/create)

Properties

NameTypeDescription
modelstringWhich mode to use, i.e., o3-mini-2025-01-31.
reasoning_effortstringUse low, medium, or high to constrain effort on reasoning for some models.