Skip to content

agent platform: remove MaxTokens from CandidateInferenceConfig - #1173

Merged
SSharma-10 merged 1 commit into
digitalocean:mainfrom
potturu-vamsi:vamsi/genai-eval-remove-max-tokens
Oct 19, 2026
Merged

SSharma-10 merged 1 commit into
digitalocean:mainfrom
potturu-vamsi:vamsi/genai-eval-remove-max-tokens

Conversation

@potturu-vamsi

@potturu-vamsi potturu-vamsi commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

PR: #1173

Need: PR review, merge, and a godo release.

What: Removes MaxTokens from CandidateInferenceConfig (model evaluation runs).
One field removed in agentplatform.go.

Why: The GenAI evaluation API no longer accepts max_tokens. The service sets the
output token limit itself. Users choose ReasoningEffort instead. The backend
change is already merged.

Note: This removes an exported field, so callers that set MaxTokens need to
remove it. The API already ignores it.

Order: Please merge after the MCP PR, which stops using this field:
digitalocean-labs/mcp-digitalocean#509
After the release, doctl only needs a godo version update (no code change).

The API no longer accepts max_tokens for evaluation candidates. The output
token limit is set by the service.

Co-authored-by: Cursor <cursoragent@cursor.com>
@SSharma-10
SSharma-10 merged commit 2dcba12 into digitalocean:main Oct 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址