Skip to content

Conversation

@GeorgeDong32
Copy link
Collaborator

What this PR does

Before this PR:

  • Claude Code (302.AI) was not available as a provider in code-tools.

After this PR:

  • Adds 302.AI (Claude Code) as a new provider for code-tools.

Fixes #12251

Why we need it and why it was done in this way

  • Adds support for an additional coding assistant provider to give users more options and improve integration with Claude Code.

Breaking changes

  • None

Special notes for your reviewer

  • None

Checklist

  • PR: The PR description is expressive enough and will help future contributors
  • Code: Write code that humans can understand and keep it simple
  • Refactor: Left the code cleaner than you found it (Boy Scout Rule)
  • Upgrade: Impact on upgrade flows was considered if required
  • Documentation: User-guide update considered if required

Release note

Adds 302.AI (Claude Code) as a new provider for code-tools.

@DeJeune
Copy link
Collaborator

DeJeune commented Jan 3, 2026

Note

This comment was translated by Claude.

Agent support can also be added.


Original Content

agent也可以加上

@GeorgeDong32 GeorgeDong32 marked this pull request as draft January 3, 2026 10:29
302.AI now supports Claude Code (Agent) functionality by configuring
the anthropicApiHost endpoint. Users can use 302.AI's Claude models
(claude-sonnet-4-20250514, claude-opus-4-20250514) with Agent.
@GeorgeDong32 GeorgeDong32 marked this pull request as ready for review January 3, 2026 13:20
@GeorgeDong32 GeorgeDong32 requested a review from 0xfullex as a code owner January 3, 2026 13:20
@DeJeune
Copy link
Collaborator

DeJeune commented Jan 3, 2026

Note

This comment was translated by Claude.

This should be restricted, not all models from such providers probably support the anthropic endpoint, right?


Original Content

需要限制一下,这种供应商应该不是所有模型都支持anthropic端点吧

@GeorgeDong32
Copy link
Collaborator Author

GeorgeDong32 commented Jan 3, 2026

Note

This comment was translated by Claude.

Their documentation states that full compatibility has been achieved.

Image
Original Content

他们文档里说全适配了

图片

@GeorgeDong32 GeorgeDong32 added this to the v1.7.9 milestone Jan 3, 2026
@kangfenmao kangfenmao merged commit 68a75dc into main Jan 4, 2026
5 of 6 checks passed
@kangfenmao kangfenmao deleted the feat-add-claude-code-302-ai branch January 4, 2026 10:07
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.

[Feature]: Add 302AI as a Claude Code service provider in the code tool.

4 participants