[GH-ISSUE #283] Antigravity 的 Claude 模型无法在 Claude Code 中使用 #201

Closed
opened 2026-02-27 07:18:27 +03:00 by kerem · 1 comment
Owner

Originally created by @yunhai-dev on GitHub (Jan 23, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/283

我看到代码中存在这样备注的话,请这样的做用意是什么?

    // 对于非 Claude 模型,删除 maxOutputTokens
    // Claude 模型需要保留 maxOutputTokens
    // if (!isClaudeModel) { 注释了cc用不了
        if (template.request.generationConfig && template.request.generationConfig.maxOutputTokens) {
            delete template.request.generationConfig.maxOutputTokens;
        }
    // }
Originally created by @yunhai-dev on GitHub (Jan 23, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/283 我看到代码中存在这样备注的话,请这样的做用意是什么? ```js // 对于非 Claude 模型,删除 maxOutputTokens // Claude 模型需要保留 maxOutputTokens // if (!isClaudeModel) { 注释了cc用不了 if (template.request.generationConfig && template.request.generationConfig.maxOutputTokens) { delete template.request.generationConfig.maxOutputTokens; } // } ```
kerem closed this issue 2026-02-27 07:18:27 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 24, 2026):

你试试就知道了

<!-- gh-comment-id:3793806641 --> @justlovemaki commented on GitHub (Jan 24, 2026): 你试试就知道了
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#201
No description provided.