AIChat ကို Shannon ဖြင့် အသုံးပြုခြင်း
AIChat ၏ config.yaml တွင် Shannon ကို openai-compatible client အဖြစ် ထည့်ပြီး Shannon model များပေါ်တွင် chat လုပ်ခြင်း၊ shell အကူအညီနှင့် agent များ run ပါ။
- 2026 နို 7 တွင် စမ်းသပ်ထားသည်
- OpenAI Chat Completions
- ခန့်မှန်း 2 မိနစ်
AIChat အကြောင်း
AIChat သည် terminal တွင် model များနှင့် chat လုပ်ရန် Rust binary တစ်ခုတည်းဖြစ်ပြီး REPL၊ shell-command အကူအညီ၊ session၊ role၊ RAG နှင့် agent များ ပါသည်။ OpenAI-compatible service မည်သည့်အရာကိုမဆို client အဖြစ် လက်ခံသဖြင့် Shannon model များကို အခြားများနှင့်အတူ စာရင်းပြုပြီး သုံးနိုင်သည်။
လိုအပ်သည်များ
- Shannon API key တစ်ခု
- Keys & usage စာမျက်နှာ
- အခြေ URL
-
https://api.shannon-ai.com/v1အဆုံးမှတ်:/v1/chat/completions - အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။
သတ်မှတ်ပုံ
-
Shannon ကို client အဖြစ် ထည့်ပါ
~/.config/aichat/config.yamlကို ပြင်ပါ။ ပုံသေmodelကို<client name>:<model id>ဟု ရေးသည်။~/.config/aichat/config.yamlmodel: shannon:shannon-3 clients: - type: openai-compatible name: shannon api_base: https://api.shannon-ai.com/v1 api_key: YOUR_API_KEY models: - name: shannon-3 max_input_tokens: 196608 max_output_tokens: 65536 supports_function_calling: true
အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ
ပို့ရန်: aichat --list-models | grep shannon
မြင်ရမည့်အရာ: စာရင်းထဲတွင် shannon:<id>။
AIChat နှင့် ကိုက်ညီသော model များ
အောက်ပါ id တိုင်းသည် AIChat ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ id သည် code နမူနာများတွင် default ဖြစ်သည်။
| မော်ဒယ် ID | Context အရွယ် | အများဆုံး output | ပုံ ထည့်သွင်းမှု |
|---|---|---|---|
shannon-3 | 196,608 | 65,536 | ဟုတ် |
shannon-3-pro | 196,608 | 65,536 | ဟုတ် |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | ဟုတ် |
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | ဟုတ် |
သိထားသင့်သည်များ
- Shannon id တစ်ခုစီကို
modelsအောက်တွင် စာရင်းပေးပါ၊ AIChat သည်openai-compatibleclient အတွက် သင်စာရင်းပေးသော id များကိုသာ ပြသည်။ - key သည် ဖိုင်ထဲတွင် ရှိသည်၊
config.yamlကို သင်တစ်ဦးတည်းသာ ဖတ်နိုင်အောင် ထားပါ။ - reasoning ပြန်ပေးသော model များအတွက် (Shannon model များကဲ့သို့) AIChat သည် model ၏ reasoning ကို အဖြေမတိုင်မီ
<think>block အဖြစ် ပြသည်။
အကြံပြုချက်များ
aichat -m shannon:<id>သည် command တစ်ခုအတွက် model ရွေးသည်၊.modelသည် REPL အတွင်း ပြောင်းသည်။aichat -e "…"သည် တောင်းဆိုမှုကို shell command အဖြစ် ပြောင်းပြီး မ run မီ မေးသည်။aichat -s <name>သည် အမည်ပေးထားသော session ကို run များကြား ထိန်းထားသည်။
ပြဿနာဖြေရှင်းခြင်း
| လက္ခဏာ | အကြောင်းရင်း | ဖြေရှင်းနည်း |
|---|---|---|
Unknown model | model ကို <client>:<id> ဟု မရေးထားပါ၊ သို့မဟုတ် id ကို client အောက်တွင် စာရင်းမပေးထားပါ။ | shannon:<id> ကို သုံးပြီး id ကို models အောက်တွင် စာရင်းပေးပါ။ |
404 Not Found | api_base တွင် /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 ကို အလိုအလျောက် ပြန်မပို့ပါ။ |
မေးခွန်းများ
AIChat သည် Shannon နှင့် အလုပ်လုပ်ပါသလား။
လုပ်ပါသည်၊ api_base: https://api.shannon-ai.com/v1 ပါသော openai-compatible client အဖြစ် ဖြစ်သည်။
AIChat သည် Shannon model အများအပြားကို သုံးနိုင်ပါသလား။
နိုင်ပါသည်၊ client အောက်တွင် စာရင်းပေးပြီး -m သို့မဟုတ် .model ဖြင့် ပြောင်းပါ။