အကြောင်းအရာသို့ ကျော်သွားရန်
Crush

ကုဒ်ရေး agent များ

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
အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။

သတ်မှတ်ပုံ

  1. 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/crushrc
    provider 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
  2. Key ကို export လုပ်ပြီး Crush ကို run ပါ

    crushrc က သင့် shell မှ $SHANNON_API_KEY ကို ဖတ်သည်။ Session အတွက် crush ကို စတင်ပါ၊ သို့မဟုတ် task တစ်ခုအတွက် crush run။

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
    crush run "Run the tests, fix what fails, then run them again."
    Shannon model shannon-coder-1 ပေါ်ရှိ terminal တွင် Crush- cat_feeder.py ပြင်ဆင်မှု နှစ်ခုလုံးကို သတင်းပို့ပြီး test များ အောင်မြင်သည်
    အထက်ပါ crushrc ဖြင့် Crush 0.100.0 ပေါ်ရှိ အမှန်တကယ် run- bug နှစ်ခုလုံး ပြင်ပြီး test အားလုံး အောင်မြင်သည်။

အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ

ပို့ရန်: ဤ project က ဘာလုပ်သလဲ။

မြင်ရမည့်အရာ: Crush က သင့်ဖိုင်များကိုဖတ်ပြီး ဖြေသည်။ model စာကြောင်းတွင် Shannon id ကို ပြသည်။

Crush နှင့် ကိုက်ညီသော model များ

အောက်ပါ id တိုင်းသည် Crush ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ id သည် code နမူနာများတွင် default ဖြစ်သည်။

မော်ဒယ် IDContext အရွယ်အများဆုံး 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.json format သည် ဆက်လုပ်နေသော်လည်း deprecated ဖြစ်ပြီး crush provider command မရှိပါ- 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 ကိုသာ စမ်းသပ်ခဲ့သည်။

အကြံပြုချက်များ

  1. crush run --yolo သည် scripted run များအတွက် permission prompt များကို ကျော်ပြီး --quiet က spinner ကို ဖျောက်သည်။
  2. တစ်ကြိမ်လျှင် request တစ်ခုသာ လိုလျှင် permissions deny agent က subagent tool ကို ဖျောက်သည်။
  3. option provider-auto-update false (သို့မဟုတ် CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1) က Crush စတင်ချိန်တွင် provider စာရင်း ယူခြင်းကို ရပ်သည်။
  4. CRUSH_DISABLE_METRICS=1 က usage metrics ကို ပိတ်သည်။
  5. 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 ကို သုံးသည်။

သင့်ဘာသာကို ရွေးချယ်ပါ

ဘာသာအားလုံးသည် တန်းတူဖြစ်သည်။ သင်အသုံးပြုလိုသော ဘာသာကို ရွေးပါ။

ဥရောပ

အရှေ့အလယ်ပိုင်းနှင့် မြောက်အာဖရိက

တောင်အာရှ

အရှေ့တောင်အာရှ

အရှေ့အာရှ

ဗဟိုအာရှနှင့် ကော့ကေးဆပ်

အာဖရိက

သမုဒ္ဒရာဒေသ

ဖန်တီးထားသော နှင့် ဂန္ထဝင်