Skip to content

Conversation

@seratch
Copy link
Member

@seratch seratch commented Nov 14, 2025

This pull request adds new parameter (reasoning.effort: none) for gpt-5.1 model in TS code.

@seratch seratch added this to the 0.3.x milestone Nov 14, 2025
@seratch seratch self-assigned this Nov 14, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2025

🦋 Changeset detected

Latest commit: 6abb4d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@openai/agents-openai Patch
@openai/agents-core Patch
@openai/agents Patch
@openai/agents-extensions Patch
@openai/agents-realtime Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

async function main() {
const prompt =
'Tell me about recursion in programming. Quickly responding with a single answer is fine.';
withTrace('GPT-5 Assistant', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-essential changes in this existing example: just added withTrace and ajusted the prompt

@seratch seratch removed their assignment Nov 14, 2025
model: 'gpt-5.1',
instructions: "You're a helpful assistant.",
modelSettings: {
reasoning: { effort: 'none' },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default effort is none so are you adding it here just to demo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, enabling explicitly passing the value in TS

@seratch seratch merged commit 184e5d0 into main Nov 14, 2025
5 checks passed
@seratch seratch deleted the gpt-5.1-reasoning-effort-none branch November 14, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants