Skip to content

feat(kosong): honor explicit anthropic max output override - #1465

Merged
liruifengv merged 3 commits into
mainfrom
feat/anthropic-max-output-override
Jul 7, 2026
Merged

feat(kosong): honor explicit anthropic max output override#1465
liruifengv merged 3 commits into
mainfrom
feat/anthropic-max-output-override

Conversation

@liruifengv

@liruifengv liruifengv commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. This addresses a limitation found while configuring explicit Anthropic output caps.

Problem

Explicit max_output_size / KIMI_MODEL_MAX_OUTPUT_SIZE settings for Anthropic Claude models were clamped to built-in ceilings, so users who intentionally configured a higher value still received the built-in cap.

What changed

  • Honored explicit Anthropic max_output_size / KIMI_MODEL_MAX_OUTPUT_SIZE as the final max_tokens value.
  • Kept non-user computed defaults and internal compaction caps on the existing ceiling / fallback logic.
  • Updated bilingual configuration and environment-variable docs.
  • Added tests for explicit override behavior.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Updated bilingual configuration and environment-variable docs for this behavior change.

Add claude-opus-4-8 output ceiling and treat explicit max_output_size/KIMI_MODEL_MAX_OUTPUT_SIZE as the final Anthropic max_tokens value. Sync configuration and environment variable docs.
@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0662ae5

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

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code 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

@pkg-pr-new

pkg-pr-new Bot commented Jul 7, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@0662ae5
npx https://pkg.pr.new/@moonshot-ai/kimi-code@0662ae5

commit: 0662ae5

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90dbf08e61

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/kosong/src/providers/anthropic.ts Outdated
Revert the newly added claude-opus-4-8 default output ceiling while keeping explicit max_output_size overrides for Anthropic.
@liruifengv
liruifengv merged commit bfdbce5 into main Jul 7, 2026
10 checks passed
@liruifengv
liruifengv deleted the feat/anthropic-max-output-override branch July 7, 2026 07:23
@github-actions github-actions Bot mentioned this pull request Jul 7, 2026
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.

1 participant