Commit c096461
committed
Send claude-cli User-Agent for anthropic mutate to bypass proxy cloaking
The CLIProxyAPI proxy cloaks requests from non-Claude-Code clients by
replacing the system prompt with Claude Code's prompts and shoving the
user's sys_msg into the first user message. Sending a User-Agent that
starts with 'claude-cli' makes ShouldCloak return false, so user
sys_msg passes through untouched.
Only applied to the anthropic override; openai/gemini are unaffected.1 parent 974c4d3 commit c096461
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
195 | | - | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
0 commit comments