GitHub Copilot CLI ကို Shannon ဖြင့် အသုံးပြုခြင်း
GitHub Copilot CLI ကို ၎င်း၏ bring-your-own-key variable များဖြင့် Shannon model များပေါ်တွင် run ပါ၊ GitHub sign-in မလိုပါ။
- 2026 နို 7 တွင် စမ်းသပ်ထားသည်
- OpenAI Chat Completions
- ခန့်မှန်း 2 မိနစ်
GitHub Copilot CLI အကြောင်း
GitHub Copilot CLI သည် GitHub ၏ terminal အတွက် agent ဖြစ်သည်- ဖိုင်များကိုဖတ်ပြင်၊ command များ run ပြီး GitHub repository များနှင့် အလုပ်လုပ်သည်။ ၎င်း၏ bring-your-own-key mode သည် Copilot ၏ ကိုယ်ပိုင် model များအစား model request များကို OpenAI-compatible endpoint မည်သည့်အရာသို့မဆို ပို့ပြီး GitHub sign-in မလိုတော့ပါ။ Shannon ဖြင့် ၎င်းသည် Shannon model များပေါ်တွင် run သည်။
လိုအပ်သည်များ
- Shannon API key တစ်ခု
- Keys & usage စာမျက်နှာ
- အခြေ URL
-
https://api.shannon-ai.com/v1အဆုံးမှတ်:/v1/chat/completions - အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။
သတ်မှတ်ပုံ
-
Copilot CLI ကို install လုပ်ပါ
Shellnpm install -g @github/copilot -
Bring-your-own-key variable များကို သတ်မှတ်ပါ
COPILOT_PROVIDER_BASE_URLကို သတ်မှတ်ထားလျှင် Copilot CLI သည် request တိုင်းကို ထို endpoint သို့ ပို့ပြီး GitHub login မတောင်းပါ။ Model ၏ ကန့်သတ်ချက်များကို ပြောပါ၊ မဟုတ်လျှင် prompt token 128,000 ဟု ယူဆသည်။Shellexport COPILOT_PROVIDER_BASE_URL=https://api.shannon-ai.com/v1 export COPILOT_PROVIDER_TYPE=openai export COPILOT_PROVIDER_API_KEY=YOUR_API_KEY export COPILOT_MODEL=Kimi-K3-uncensored-NVFP4 export COPILOT_PROVIDER_MAX_PROMPT_TOKENS=1022976 export COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=262144 -
Copilot ကို run ပါ
copilotက session တစ်ခုဖွင့်သည်။copilot -pက task တစ်ခုကို run သည်။--allow-allက tool၊ path နှင့် URL များကို မမေးဘဲ သုံးခွင့်ပေးသည်။Shellcopilot -p "Run the tests, fix what fails, then run them again." --allow-all
GitHub login မပါဘဲ GitHub Copilot CLI 1.0.107 ပေါ်ရှိ အမှန်တကယ် run- tool အဆင့် ခြောက်ခု၊ test အားလုံး အောင်မြင်သည်။
အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ
ပို့ရန်: /model
မြင်ရမည့်အရာ: COPILOT_MODEL မှ Shannon id။
GitHub Copilot CLI နှင့် ကိုက်ညီသော model များ
အောက်ပါ id တိုင်းသည် GitHub Copilot CLI ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ 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 ဆက်တင်များ
GitHub Copilot CLI က ဤတန်ဖိုးများကို တောင်းသည်။ ၎င်းတို့သည် သင်ရွေးထားသော model အပေါ် မူတည်သည်။
| ဆက်တင် | တန်ဖိုး | အကြောင်းရင်း |
|---|---|---|
COPILOT_PROVIDER_MAX_PROMPT_TOKENS | 1022976 | model ၏ window။ မသိသော model များအတွက် မူလတန်ဖိုးမှာ 128,000 ဖြစ်သည်။ |
COPILOT_PROVIDER_MAX_OUTPUT_TOKENS | 262144 | အရှည်ဆုံး အဖြေ။ |
သိထားသင့်သည်များ
- Copilot CLI ၏ docs တွင် model များကို
<provider>/<id>ဟု အမည်ပေးပြီး/modelဖြင့် ပြောင်းသည့်~/.copilot/providers.jsonကိုလည်း ဖော်ပြထားသည်။ အထက်ပါ variable များကို ကျွန်ုပ်တို့ စမ်းသပ်ခဲ့သည်။ - Bring-your-own-key က agent ၏ chat နှင့် tool request များကို ပြောင်းလဲသည်။ GitHub MCP server ကဲ့သို့ GitHub feature များသည် GitHub login လိုအပ်ဆဲ သို့မဟုတ် offline mode တွင် ပိတ်ထားသည်။
COPILOT_OFFLINE=trueက telemetry၊ web tool များနှင့် auto-update ကိုပါ ပိတ်သည်။COPILOT_PROVIDER_BASE_URLလိုအပ်သည်။- GitHub ၏ docs တွင် provider များအတွက်
~/.copilot/providers.jsonဖိုင်ကိုလည်း ဖော်ပြထားသည်။ ကျွန်ုပ်တို့ environment variable များကို စမ်းသပ်ခဲ့သည်။ - ပုံ input ရှိသော model အတွက်သာ
COPILOT_PROVIDER_VISION=trueကို သတ်မှတ်ပါ။ မဟုတ်လျှင် tool များမှ ပုံများကို မပို့ပါ။
အကြံပြုချက်များ
--excluded-tools taskက subagent tool ကို ဖျောက်သဖြင့် run တစ်ခုသည် တစ်ကြိမ်လျှင် request တစ်ခုသာ ပို့သည်။copilot --resume=<id>က run တစ်ခုကို ဆက်လုပ်သည်။ id ကို အဆုံးတွင် print ထုတ်ပေးသည်။copilot help environmentက Responses API အတွက်COPILOT_PROVIDER_WIRE_API=responsesအပါအဝင် variable အားလုံးကို စာရင်းပြသည်။- ကျွန်ုပ်တို့၏ bug နှစ်ခု စမ်းသပ်မှုသည် request ငါးခုနှင့် input token ခန့်မှန်း 76,000 ကြာခဲ့သည်။
ပြဿနာဖြေရှင်းခြင်း
| လက္ခဏာ | အကြောင်းရင်း | ဖြေရှင်းနည်း |
|---|---|---|
| Copilot က login ဝင်ရန် တောင်းသည် | ဤ shell တွင် COPILOT_PROVIDER_BASE_URL ကို မသတ်မှတ်ထားပါ။ | copilot မစတင်မီ variable များကို export လုပ်ပါ။ |
404 Not Found | Base URL တွင် /v1 မပါပါ။ | https://api.shannon-ai.com/v1 ကို သုံးပါ။ |
| ရှည်သော session များတွင် context error များ | Copilot က model တွင်ရှိသည်ထက် ပိုကြီးသော window ရှိသည်ဟု ယူဆခဲ့သည်။ | COPILOT_PROVIDER_MAX_PROMPT_TOKENS ကို သတ်မှတ်ပါ။ |
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 ကို အလိုအလျောက် ပြန်မပို့ပါ။ |
မေးခွန်းများ
GitHub Copilot CLI က Shannon model များကို သုံးနိုင်ပါသလား။
ရပါသည်၊ ၎င်း၏ bring-your-own-key variable များကို https://api.shannon-ai.com/v1 သို့ ညွှန်းခြင်းဖြင့်။
Copilot subscription လိုပါသလား။
Bring-your-own-key request များအတွက် မလိုပါ။ ကျွန်ုပ်တို့ GitHub login မပါဘဲ run ခဲ့သည်။