Skip to content

Propagate multi-message system prompts and token usage#3

Open
karashiiro wants to merge 3 commits into
terhechte:mainfrom
karashiiro:fix/parity
Open

Propagate multi-message system prompts and token usage#3
karashiiro wants to merge 3 commits into
terhechte:mainfrom
karashiiro:fix/parity

Conversation

@karashiiro

@karashiiro karashiiro commented Oct 16, 2025

Copy link
Copy Markdown
  • The system prompt is actually two messages in Claude Code, so we need to handle the array case of it to actually get the real Claude Code system prompt here
  • Token usages need to be mapped back from OpenRouter to Claude or else there's an input_tokens error sometimes after pasting content into the chat
  • Added debug logging for the raw request for future use

Validated via debug logging and live usage.

@karashiiro

Copy link
Copy Markdown
Author

??

@MikkoParkkola

Copy link
Copy Markdown

Hey sorry, I was playing with your fork with claude code as I run into the same issues, and it seemed to do a bit of free style comments of its own automatically. Comments removed.

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