File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using OpenRouter
2+ using OpenRouterCLIProxyAPI
3+
4+ println (" =" ^ 60 )
5+ println (" TEST 1: BEFORE MUTATE INJECT" )
6+ println (" anthropic:anthropic/claude-sonnet-4.5 -> direct Anthropic API" )
7+ println (" =" ^ 60 )
8+
9+ response1 = aigen (" Say 'Hello from before mutate' in exactly those words." ,
10+ " anthropic:anthropic/claude-sonnet-4.5" ;
11+ streamcallback= HttpStreamCallback (; out= stdout , verbose= true ))
12+
13+ println (" \n\n Response: " , response1. content)
14+
15+ println (" \n " * " =" ^ 60 )
16+ println (" APPLYING MUTATE INJECT..." )
17+ println (" =" ^ 60 )
18+
19+ setup_cli_proxy! (; mutate= true )
20+
21+ println (" \n " * " =" ^ 60 )
22+ println (" TEST 2: AFTER MUTATE INJECT (anthropic: prefix)" )
23+ println (" anthropic:anthropic/claude-sonnet-4.5 -> now routes to cli_proxy_api" )
24+ println (" =" ^ 60 )
25+
26+ response2 = aigen (" Say 'Hello from after mutate' in exactly those words." ,
27+ " anthropic:anthropic/claude-sonnet-4.5" ;
28+ streamcallback= HttpStreamCallback (; out= stdout , verbose= true ))
29+
30+ println (" \n\n Response: " , response2. content)
You can’t perform that action at this time.
0 commit comments