chatgpt@1.0.1
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
Param | Type | Description |
---|---|---|
message | string | The prompt |
options | PromptOptions | Model, 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
Name | Type | Description |
---|---|---|
model | string | Which mode to use, i.e., o3-mini-2025-01-31 . |
reasoning_effort | string | Use low , medium , or high to constrain effort on reasoning for some models. |