[GH-ISSUE #15] Claude Code Router如何接入呢 #14

Closed
opened 2026-02-27 07:17:22 +03:00 by kerem · 2 comments
Owner

Originally created by @hacpai on GitHub (Aug 3, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/15

尝试接入进行配置,看起来ccr无法输出接口返回值

Image

AIClient-2-API log

[System Prompt Manager] System prompt updated in file for provider 'claude'.
8/3/2025, 10:51:04 AM [INPUT]:
<system-reminder>
As you answer the user's questions, you can use the following context:
# important-instruction-reminders
Do what has been asked; nothing more, nothing less.
NEVER create files unless they're absolutely necessary for achieving your goal.
ALWAYS prefer editing an existing file to creating a new one.
NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.

      
      IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.
</system-reminder>
你好<system-reminder>This is a reminder that your todo list is currently empty. DO NOT mention this to the user explicitly because they are already aware. If you are working on tasks that would benefit from a todo list please use the TodoWrite tool to create one. If not, please feel free to ignore. Again do not mention this message to the user.</system-reminder>你好
--------------------------------------

[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
8/3/2025, 10:51:06 AM [OUTPUT]:
{
  "isNewTopic": true,
  "title": "Chinese Greeting"
}
--------------------------------------

[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
[Function: toOpenAIStreamChunkFromClaude]
8/3/2025, 10:51:08 AM [OUTPUT]:
你好!我是 Claude Code,Anthropic 的官方 CLI 工具。我可以帮助您完成各种软件工程任务。有什么我可以帮您的吗?
--------------------------------------
Originally created by @hacpai on GitHub (Aug 3, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/15 尝试接入进行配置,看起来ccr无法输出接口返回值 <img width="1664" height="134" alt="Image" src="https://github.com/user-attachments/assets/b0dbc7b5-3954-4efb-a633-6c719082c06e" /> AIClient-2-API log ``` [System Prompt Manager] System prompt updated in file for provider 'claude'. 8/3/2025, 10:51:04 AM [INPUT]: <system-reminder> As you answer the user's questions, you can use the following context: # important-instruction-reminders Do what has been asked; nothing more, nothing less. NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User. IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task. </system-reminder> 你好<system-reminder>This is a reminder that your todo list is currently empty. DO NOT mention this to the user explicitly because they are already aware. If you are working on tasks that would benefit from a todo list please use the TodoWrite tool to create one. If not, please feel free to ignore. Again do not mention this message to the user.</system-reminder>你好 -------------------------------------- [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] 8/3/2025, 10:51:06 AM [OUTPUT]: { "isNewTopic": true, "title": "Chinese Greeting" } -------------------------------------- [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] [Function: toOpenAIStreamChunkFromClaude] 8/3/2025, 10:51:08 AM [OUTPUT]: 你好!我是 Claude Code,Anthropic 的官方 CLI 工具。我可以帮助您完成各种软件工程任务。有什么我可以帮您的吗? -------------------------------------- ```
kerem closed this issue 2026-02-27 07:17:22 +03:00
Author
Owner

@justlovemaki commented on GitHub (Aug 3, 2025):

你这是用openai协议对接ccr,多此一举啊,可以直接claude协议对接cc

<!-- gh-comment-id:3148468377 --> @justlovemaki commented on GitHub (Aug 3, 2025): 你这是用openai协议对接ccr,多此一举啊,可以直接claude协议对接cc
Author
Owner

@hacpai commented on GitHub (Aug 3, 2025):

Okay,懂了 谢谢大佬

<!-- gh-comment-id:3148623602 --> @hacpai commented on GitHub (Aug 3, 2025): Okay,懂了 谢谢大佬
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#14
No description provided.