Editor နှင့် IDE extension များ
GitHub Copilot in VS Code ကို Shannon ဖြင့် အသုံးပြုခြင်း
VS Code ၏ Custom Endpoint provider ဖြင့် Shannon ကို ထည့်လိုက်ပါက Shannon model များသည် agent mode အပါအဝင် chat model picker တွင် ပေါ်လာသည်။
- GitHub Copilot in VS Code စာရွက်စာတမ်းများအရ၊ 2026 နို 7
- OpenAI Chat Completions
- ခန့်မှန်း 3 မိနစ်
GitHub Copilot in VS Code အကြောင်း
GitHub Copilot in VS Code သည် editor တွင် ပါဝင်သော AI ဖြစ်သည်- စာရိုက်စဉ် အကြံပြုချက်များ၊ ကုဒ်ဘေးရှိ chat နှင့် agent၊ ပြင်ဆင်လိုသည့်နေရာအတွက် inline chat တို့ ပါဝင်သည်။ Agent သည် workspace ကို ဖတ်ပြီး ဖိုင်များကို ပြင်ကာ terminal command များကို run ပြီး MCP tool များကို သုံးသည်။ Custom Endpoint provider ဖြင့် chat နှင့် agent mode သည် သင်ထည့်သော Shannon model များပေါ်တွင် အလုပ်လုပ်သည်။
လိုအပ်သည်များ
- Shannon API key တစ်ခု
- Keys & usage စာမျက်နှာ
- အခြေ URL
-
https://api.shannon-ai.com/v1အဆုံးမှတ်:/v1/chat/completions - အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။
သတ်မှတ်ပုံ
-
Custom Endpoint provider ကို ထည့်ပါ
Command Palette မှ (သို့မဟုတ် model picker ရှိ gear မှ) Chat: Manage Language Models ကို run ပါ။ Add Models → Custom Endpoint ကို ရွေးပြီး group name အဖြစ်
Shannon၊ ပြသရန်အမည်နှင့် သင့် API key ကို ထည့်ကာ API type Chat Completions ကို ရွေးပါ။ -
Model ကို ဖော်ပြပါ
VS Code သည်
chatLanguageModels.jsonကို ဖွင့်ပေးသည်။ ၎င်းရေးထားသောapiKeyတန်ဖိုးကို မပြောင်းဘဲ ထားပြီး model အချက်အလက်ကို ဖြည့်ပါ။toolCallingသည်trueဖြစ်ရမည်၊ မဟုတ်လျှင် agent mode တွင် model ကို ဖျောက်ထားသည်။chatLanguageModels.json[ { "name": "Shannon", "vendor": "customendpoint", "apiKey": "${input:shannonApiKey}", "apiType": "chat-completions", "models": [ { "id": "Kimi-K3-uncensored-NVFP4", "name": "Kimi-K3-uncensored-NVFP4", "url": "https://api.shannon-ai.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1022976, "maxOutputTokens": 262144 } ] } ] -
Chat တွင် model ကို ရွေးပါ
Ask သို့မဟုတ် Agent mode တွင် Chat view ၏ model picker မှ Shannon model ကို ရွေးပါ။ မပေါ်လျှင် VS Code ကို ပြန်စတင်ပါ။
အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ
ပို့ရန်: ဤ workspace ထဲရှိ ဖိုင်များကို စာရင်းပြပြီး တစ်ခုချင်း ဘာလုပ်သည်ကို ပြောပြပါ။
မြင်ရမည့်အရာ: Agent mode သည် ၎င်း၏ tool များဖြင့် workspace ကို ဖတ်ပြီး Shannon model ဖြင့် ဖြေကြားသည်။
GitHub Copilot in VS Code နှင့် ကိုက်ညီသော model များ
အောက်ပါ id တိုင်းသည် GitHub Copilot in VS Code ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ id သည် code နမူနာများတွင် default ဖြစ်သည်။
| မော်ဒယ် ID | Context အရွယ် | အများဆုံး output | ပုံ ထည့်သွင်းမှု |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | ဟုတ် |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | ဟုတ် |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | ဟုတ် |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | ဟုတ် |
shannon-3 | 196,608 | 65,536 | ဟုတ် |
Model ဆက်တင်များ
GitHub Copilot in VS Code က ဤတန်ဖိုးများကို တောင်းသည်။ ၎င်းတို့သည် သင်ရွေးထားသော model အပေါ် မူတည်သည်။
| ဆက်တင် | တန်ဖိုး | အကြောင်းရင်း |
|---|---|---|
contextWindow | 1022976 | Input နှင့် output ပေါင်း၊ VS Code က ၎င်းမှ input ကန့်သတ်ချက်ကို ထုတ်ယူသည်။ |
maxOutputTokens | 262144 | အရှည်ဆုံး အဖြေ။ |
သိထားသင့်သည်များ
- Local harness session များတွင် သင်ထည့်သော model များသည် GitHub sign-in မလိုဘဲ Copilot plan မလိုဘဲ အလုပ်လုပ်သည်။ Inline suggestions၊ semantic search နှင့် embeddings တို့ကတော့ GitHub account လိုအပ်နေဆဲ ဖြစ်သည်။
- GitHub sign-in မရှိလျှင် ခေါင်းစဉ်များ၊ commit message များနှင့် အလားတူ utility လုပ်ငန်းများအတွက် model မရှိပါ။
chat.byokUtilityModelDefaultကို Main Agent Model သို့၊ သို့မဟုတ်chat.utilityModelနှင့်chat.utilitySmallModelကို Shannon model တစ်ခုသို့ သတ်မှတ်ပါ။ - Copilot Business နှင့် Enterprise တွင် administrator သည် Bring Your Own Language Model Key in VS Code policy ကို ပိတ်နိုင်သည်။
- Responses API အတွက်
"url": "https://api.shannon-ai.com/v1/responses"၊"apiType": "responses"နှင့်"statefulResponses": falseကို သုံးပါ၊ Shannon သည် ပြန်ကြားချက်များကို မသိမ်းထားပါ။ Anthropic Messages အတွက်https://api.shannon-ai.com/v1/messagesနှင့်"apiType": "messages"ကို သုံးပါ။ - ဤ model များကို Copilot harness session များတွင် သုံးရန် စမ်းသပ်ဆဲ
chat.agentHost.byokModels.enabledsetting လိုအပ်သည်။
အကြံပြုချက်များ
- Project စည်းမျဉ်းများကို
.github/copilot-instructions.mdသို့မဟုတ်AGENTS.mdထဲတွင် ထားပါ၊ chat တစ်ခုတွင်/initရိုက်ပါက workspace ကို အခြေခံ၍ ၎င်းတို့ကို ရေးပေးသည် သို့မဟုတ် အသစ်ပြင်ပေးသည်။ #ရိုက်၍ ဖိုင် သို့မဟုတ် symbol များကို ပူးတွဲပါ၊#codebaseဖြင့် workspace ထဲမှ သက်ဆိုင်ရာကုဒ်ကို ရှာပါ၊#fetchဖြင့် ဝဘ်စာမျက်နှာကို ဖတ်ပါ။Ctrl+Alt+I(macOS တွင်⌃⌘I) သည် Chat view ကို၊Ctrl+I(⌘I) သည် editor ထဲ inline chat ကို ဖွင့်သည်၊/modelsသည် model picker ကို ဖွင့်သည်။- Chat input ရှိ context control သည် chat တစ်ခုက window ကို မည်မျှ သုံးထားသည်ကို ပြသည်၊ ရှည်သော session ကို ကိုယ်တိုင် အကျဉ်းချုပ်လိုလျှင်
/compactရိုက်ပါ။ - VS Code သည် request တစ်ခုစီမတိုင်မီ ထိခိုက်မည့်ဖိုင်များ၏ checkpoint ကို သိမ်းထားသည်၊ request ပေါ်တွင် mouse တင်ပြီး Restore Checkpoint ကို ရွေးပါက ထိုအချိန်သို့ ပြန်သွားနိုင်သည်။
ပြဿနာဖြေရှင်းခြင်း
| လက္ခဏာ | အကြောင်းရင်း | ဖြေရှင်းနည်း |
|---|---|---|
| Agent mode တွင် model မပေါ်ပါ | toolCalling သည် false ဖြစ်နေသည် သို့မဟုတ် မပါပါ။ | "toolCalling": true ဟု သတ်မှတ်ပြီး သိမ်းပါ။ |
| Tool call ပျောက်နေသည်ဟု Responses API error များ ပေါ်သည် | VS Code သည် မူလအတိုင်း previous_response_id ကို ပို့သည်၊ Shannon က ပြန်ကြားချက်များကို မသိမ်းထားပါ။ | Model ထဲသို့ "statefulResponses": false ကို ထည့်ပါ။ |
| Chat ခေါင်းစဉ်များ သို့မဟုတ် commit message များ မရှိပါ | GitHub သို့ sign in မလုပ်ထားသဖြင့် utility model မရှိပါ။ | chat.byokUtilityModelDefault သို့မဟုတ် chat.utilityModel ကို Shannon model သို့ သတ်မှတ်ပါ။ |
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 in VS Code သည် Shannon နှင့် အလုပ်လုပ်ပါသလား။
ဟုတ်ကဲ့၊ Custom Endpoint provider ဖြင့် model url ကို https://api.shannon-ai.com/v1/chat/completions ဟု ထားပါ။
Copilot plan လိုအပ်ပါသလား။
မလိုပါ၊ Local harness session များရှိ chat နှင့် agent mode အတွက် မလိုပါ။ Inline suggestions အတွက်ကတော့ Copilot လိုအပ်ဆဲ ဖြစ်သည်။
ယခင် OpenAI Compatible provider ကို ဆက်သုံးနေပါသေးသလား။
မသုံးတော့ပါ။ Custom Endpoint က အစားထိုးခဲ့ပြီး github.copilot.chat.customOAIModels ကို ရပ်ဆိုင်းတော့မည့် အနေအထားတွင် ထားသည်။