Crush ကို Shannon ဖြင့် အသုံးပြုခြင်း
provider add နှင့် model add ဖြင့် Crush ၏ crushrc တွင် Shannon ကို ထည့်ပါ၊ Crush သည် သင့် terminal တွင် Shannon model များပေါ်၌ code ရေးပေးသည်။
- 2026 နို 7 တွင် စမ်းသပ်ထားသည်
- OpenAI Chat Completions
- ခန့်မှန်း 3 မိနစ်
Crush အကြောင်း
Crush သည် Bubble Tea နှင့် Glow တို့ကို ဖန်တီးသော Charm team မှ terminal အတွက် coding agent ဖြစ်သည်။ ဖိုင်များကို ဖတ်ပြင်ပြီး shell command များ run ကာ language server များနှင့် ဆက်သွယ်သည်။ Crush သည် OpenAI-compatible provider မည်သည့်အရာနှင့်မဆို အလုပ်လုပ်သဖြင့် ၎င်း၏ အဓိကအလုပ်နှင့် တိုတောင်းသော ဘေးတွဲ task များ နှစ်မျိုးလုံးအတွက် Shannon model များကို သုံးနိုင်သည်။
လိုအပ်သည်များ
- Shannon API key တစ်ခု
- Keys & usage စာမျက်နှာ
- အခြေ URL
-
https://api.shannon-ai.com/v1အဆုံးမှတ်:/v1/chat/completions - အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။
သတ်မှတ်ပုံ
-
crushrc တွင် Shannon ကို ထည့်ပါ
Crush ကို
~/.config/crush/crushrcဟူသော Bash နှင့်ဆင်တူသော ဖိုင်ဖြင့် configure လုပ်ပြီး Crush စတင်သည့်အခါ run သည်။--type completionsသည် OpenAI-compatible format ဖြစ်သည်။ Large model အပြင် small model ကိုလည်း သတ်မှတ်ပါ- Crush သည် session ခေါင်းစဉ်များအတွက် small model ကို သုံးသည်။~/.config/crush/crushrcprovider add shannon --type completions \ --base-url "https://api.shannon-ai.com/v1" \ --api-key "$SHANNON_API_KEY" model add shannon/Kimi-K3-uncensored-NVFP4 \ --name "Kimi-K3-uncensored-NVFP4" \ --context-window 1022976 \ --default-max-tokens 262144 model large shannon/Kimi-K3-uncensored-NVFP4 model small shannon/Kimi-K3-uncensored-NVFP4 -
Key ကို export လုပ်ပြီး Crush ကို run ပါ
crushrc က သင့် shell မှ
$SHANNON_API_KEYကို ဖတ်သည်။ Session အတွက်crushကို စတင်ပါ၊ သို့မဟုတ် task တစ်ခုအတွက်crush run။Shellexport SHANNON_API_KEY=YOUR_API_KEY crush run "Run the tests, fix what fails, then run them again."
အထက်ပါ crushrc ဖြင့် Crush 0.100.0 ပေါ်ရှိ အမှန်တကယ် run- bug နှစ်ခုလုံး ပြင်ပြီး test အားလုံး အောင်မြင်သည်။
အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ
ပို့ရန်: ဤ project က ဘာလုပ်သလဲ။
မြင်ရမည့်အရာ: Crush က သင့်ဖိုင်များကိုဖတ်ပြီး ဖြေသည်။ model စာကြောင်းတွင် Shannon id ကို ပြသည်။
Crush နှင့် ကိုက်ညီသော model များ
အောက်ပါ id တိုင်းသည် Crush ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ id သည် code နမူနာများတွင် default ဖြစ်သည်။
| မော်ဒယ် ID | Context အရွယ် | အများဆုံး output | ပုံ ထည့်သွင်းမှု |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | ဟုတ် |
shannon-coder-1 | 131,072 | 65,536 | မဟုတ် |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | ဟုတ် |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | ဟုတ် |
shannon-3 | 196,608 | 65,536 | ဟုတ် |
Model ဆက်တင်များ
Crush က ဤတန်ဖိုးများကို တောင်းသည်။ ၎င်းတို့သည် သင်ရွေးထားသော model အပေါ် မူတည်သည်။
| ဆက်တင် | တန်ဖိုး | အကြောင်းရင်း |
|---|---|---|
--context-window | 1022976 | model ၏ window ဖြစ်သည်။ |
--default-max-tokens | 262144 | အရှည်ဆုံး အဖြေ။ |
သိထားသင့်သည်များ
- လက်ရှိ Crush သည် JSON မဟုတ်ဘဲ
crushrcကို ဖတ်သည်။ အဟောင်းcrush.jsonformat သည် ဆက်လုပ်နေသော်လည်း deprecated ဖြစ်ပြီးcrush providercommand မရှိပါ-provider addသည်crushrcထဲရှိ စာကြောင်းတစ်ကြောင်းဖြစ်သည်။ - ပထမ request run နေစဉ် Crush က small model ကို session ခေါင်းစဉ်တောင်းသဖြင့် session အသစ်သည် request နှစ်ခုကို တစ်ပြိုင်နက် ပို့သည်။
--type completionsသည် Shannon ၏ Chat Completions endpoint အတွက် မှန်ကန်သည်။ Crush ၏ docs တွင် Anthropic-format provider များအတွက်/v1ဖြင့်ဆုံးသော base URL နှင့်--type messagesကို သုံးသည်။ ကျွန်ုပ်တို့completionsကိုသာ စမ်းသပ်ခဲ့သည်။
အကြံပြုချက်များ
crush run --yoloသည် scripted run များအတွက် permission prompt များကို ကျော်ပြီး--quietက spinner ကို ဖျောက်သည်။- တစ်ကြိမ်လျှင် request တစ်ခုသာ လိုလျှင်
permissions deny agentက subagent tool ကို ဖျောက်သည်။ option provider-auto-update false(သို့မဟုတ်CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1) က Crush စတင်ချိန်တွင် provider စာရင်း ယူခြင်းကို ရပ်သည်။CRUSH_DISABLE_METRICS=1က usage metrics ကို ပိတ်သည်။model addဖြင့် id အများအပြားကို မှတ်ပုံတင်ပြီး run တစ်ခုချင်းအတွက်crush run -m shannon/<id>ဖြင့် တစ်ခုရွေးပါ။
ပြဿနာဖြေရှင်းခြင်း
| လက္ခဏာ | အကြောင်းရင်း | ဖြေရှင်းနည်း |
|---|---|---|
Unknown command "provider" | provider add ကို shell တွင် ရိုက်ထည့်ခဲ့သည်။ | ၎င်းကို ~/.config/crush/crushrc တွင် ထားပါ၊ ၎င်းသည် CLI command မဟုတ်ဘဲ crushrc command ဖြစ်သည်။ |
401 | Crush စတင်သောအခါ SHANNON_API_KEY ကို မသတ်မှတ်ထားပါ။ | ၎င်းကို export လုပ်ပါ၊ သို့မဟုတ် key ကို --api-key ထဲ ရေးပါ။ |
404 Not Found | --base-url တွင် /v1 မပါပါ။ | https://api.shannon-ai.com/v1 ကို သုံးပါ။ |
401 Unauthorized | Key မရှိခြင်း၊ စာလုံးပေါင်းမှားခြင်း သို့မဟုတ် လဲလှယ်ပြီးသွားခြင်း ဖြစ်သည်။ | Keys & usage မှ key ကို ထပ်မံကူးယူပါ။ ၎င်းသည် sk- ဖြင့် စတင်သည်။ |
context_length_exceeded သို့မဟုတ် "prompt is too long" စာတို | စကားပြောဆိုမှုသည် model ၏ context window ထက် ပိုရှည်နေသည်။ | chat အသစ် စတင်ပါ၊ tool ကို ချုံ့ခွင့်ပေးပါ သို့မဟုတ် window ပိုကြီးသော model ကို ရွေးပါ။ |
insufficient_quota | သင့် လက်ကျန်ငွေသည် request အတွက် ပေးချေရန် မလုံလောက်ပါ။ | Top up ပြုလုပ်ပါ သို့မဟုတ် plan ပြောင်းပါ။ request ကို အလိုအလျောက် ပြန်မပို့ပါ။ |
မေးခွန်းများ
Crush သည် Shannon နှင့် အလုပ်လုပ်ပါသလား။
လုပ်ပါသည်၊ type completions နှင့် base URL https://api.shannon-ai.com/v1 ပါသော custom provider အဖြစ်။
Small model ကို သတ်မှတ်ရန် လိုပါသလား။
ခေါင်းစဉ်တောင်းဆိုမှုများလည်း Shannon သို့ သွားစေရန် သတ်မှတ်ပါ။ Crush သည် small model ကို အရင်ကြိုးစားပြီး ထို့နောက် large model ကို သုံးသည်။