6 ms·
This works: $ZAI_ANTHROPIC_BASE_URL=xxx $ZAI_ANTHROPIC_AUTH_TOKEN=xxx alias "claude-zai"="ANTHROPIC_BASE_URL=$ZAI_ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKE
by mcpeepants 9mo ago
This works:
$ZAI_ANTHROPIC_BASE_URL=xxx
$ZAI_ANTHROPIC_AUTH_TOKEN=xxx
alias "claude-zai"="ANTHROPIC_BASE_URL=$ZAI_ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN=$ZAI_ANTHROPIC_AUTH_TOKEN claude"
Then you can run `claude`, hit your limit, exit the session and `claude-zai -c` to continue (with context reset, of course).
- CodeWriter23 9mo agoWhy would one want to do that instead of using claude-zai -c from the start? All this is pretty new to me, kick a n00b a clue please.
- mlyle 9mo agoClaude is smarter than this model. So spilling over to a less preferred model when you run out of quota is a thing.
- sumedh 9mo agoThanks will try it out.
- explodes 9mo agoThere is config you can add to your ~/.claude/settings.json file for this. (I'm on mobile!)
- buremba 9mo agoI tried this and it broke the conversation. :(
- cmrdporcupine 9mo agoYes you usually need to compact first before doing this kind of thing because the context windows are different.