chatgpt@1.0.5
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(`Filter these emails and pick out the most urgent: ${JSON.stringify($.data)}`);
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. |