Skip to content

Conversation

@ipince
Copy link
Contributor

@ipince ipince commented Nov 10, 2025

Summary

CUA models require auto-truncation.

I also set isReasoning and systemMessageMode to match what Vercel's AISDK sets for them, but honestly I'm not sure how those fields are used... The inference calls worked just fine whether the roles were "system" or "developer".

Also, it seems that CUA is indeed a "reasoning model", because we do get reasoning output from it, even if it's not listed as a reasoning model in OpenAI's docs. But, OpenAI's docs also say that reasoning models do not support temperature, but we do set temperature (after loop-detection) and it does seem to work... so I'm a bit confused here. I might have to change some of the AISDK code that currently enforces that temperature is NOT set for reasoning models.

How was it tested?

Ran testpilot test while pulling these local changes.

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 License.

By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the Community Contribution License.

@ipince ipince requested a review from loreto November 10, 2025 17:04
Copy link
Contributor

@loreto loreto left a comment

Choose a reason for hiding this comment

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

LGTM

SystemMessageMode: "developer",
RequiredAutoTruncation: false,
}
} else if len(modelID) > 0 && strings.HasPrefix(modelID, "computer") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Make the prefix "computer-use" to be safer?

@ipince ipince force-pushed the rodrigo/aisdk-cua-truncation branch from 5ca0c82 to 93de906 Compare November 10, 2025 21:03
@ipince ipince merged commit 6a3eb78 into main Nov 10, 2025
13 checks passed
@ipince ipince deleted the rodrigo/aisdk-cua-truncation branch November 10, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants