Peke ki ngā ihirangi
GitHub Copilot in VS Code

Ngā ētita me ngā toronga IDE

Whakamahia a GitHub Copilot in VS Code me Shannon

Tāpirihia a Shannon mā te kaiwhakarato Custom Endpoint a VS Code ka puta ngā model Shannon ki te kaitīpako model chat, tae atu ki te aratau agent.

  • Nō ngā tuhinga a GitHub Copilot in VS Code, 7 Noe 2026
  • OpenAI Chat Completions
  • Tata ki te 3 meneti

Mō GitHub Copilot in VS Code

Ko GitHub Copilot i VS Code te AI kua whakaurua ki te ētita: ngā marohi i a koe e patapatai ana, he chat me he agent i te taha o tō waehere, me te chat i roto i te rārangi mō ngā whakatika arotahi. Ka pānui te agent i te wāhi mahi, ka whakatika kōnae, ka whakahaere whakahau tāuru, ka whakamahi hoki i ngā taputapu MCP. Ki te kaiwhakarato Custom Endpoint, ka rere te chat me te aratau agent ki runga i ngā model Shannon ka tāpiria e koe.

Ngā mea e hiahiatia ana

He API key Shannon
Ngā kī me te whakamahinga
URL pūtake
https://api.shannon-ai.com/v1 Pito mutunga: /v1/chat/completions
Ka whai ia wāhanga waehere i raro iho i tō kōwhiringa.

Whakaritea

  1. Tāpirihia he kaiwhakarato Custom Endpoint

    Whakahaerehia Chat: Manage Language Models mai i te Command Palette (mā te whītiki rānei i te kaitīpako model). Tīpakohia Add Models → Custom Endpoint, whakauruhia te Shannon hei ingoa rōpū, he ingoa whakaatu me tō API key, ka kōwhiria te momo API Chat Completions.

  2. Whakamāramahia te model

    Ka whakatuwhera a VS Code i te chatLanguageModels.json. Puritia te uara apiKey i tuhia e ia ka whakakīa te model. Me true te toolCalling, ka huna rānei te model i te aratau agent.

    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
          }
        ]
      }
    ]
  3. Kōwhiria te model i te chat

    Tīpakohia te model Shannon i te kaitīpako model o te tirohanga Chat, i te aratau Ask, Agent rānei. Mēnā kāore e puta, whakaarotia anōtia a VS Code.

Tirohia kei te mahi

Tukuna: Rārangitia ngā kōnae o tēnei wāhi mahi ka kī he aha te mahi a ia kōnae.

Me kite koe i: Ka pānui te aratau agent i te wāhi mahi mā āna taputapu ka whakautu mā te model Shannon.

Ngā model e hāngai ana ki GitHub Copilot in VS Code

Ka tutuki i ia id i raro iho ngā hiahia o GitHub Copilot in VS Code. Ko te tuatahi te taunoa i ngā wāhanga waehere.

Id tauiraMatapihi horopakiOutput nui rawaInput whakaahua
Kimi-K3-uncensored-NVFP4 1,022,976 262,144 Āe
Kimi-K3.1-Pro-uncensored-NVFP4 1,022,976 262,144 Āe
MiMo-V2.6-Pro-uncensored-NVFP4 1,022,976 131,072 Āe
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 Āe
shannon-3 196,608 65,536 Āe

Ngā tautuhinga model

Ka tono a GitHub Copilot in VS Code i ēnei uara. Ka whai rātou i te model i kōwhiria e koe.

TautuhingaUaraHe aha ai
contextWindow 1022976 Input me te output; ka tango a VS Code i te tepe input i tēnei.
maxOutputTokens 262144 Te whakautu roa rawa.

He pai kia mōhio

  • I ngā huihuinga Local harness, ka mahi ngā model ka tāpiria e koe me te kore urunga GitHub me te kore mahere Copilot. Ka hiahia tonu ngā marohi i roto i te rārangi, te rapu tikanga me ngā embedding ki tētahi pūkete GitHub.
  • Mēnā kāore koe i uru ki GitHub, kāore he model mō ngā taitara, ngā karere commit me ētahi atu mahi āwhina pērā. Tautuhia te chat.byokUtilityModelDefault ki Main Agent Model, te chat.utilityModel me te chat.utilitySmallModel rānei ki tētahi model Shannon.
  • I Copilot Business me Enterprise, ka āhei te kaiwhakahaere ki te whakaweto i te kaupapahere Bring Your Own Language Model Key in VS Code.
  • Mō te Responses API, whakamahia te "url": "https://api.shannon-ai.com/v1/responses", te "apiType": "responses" me te "statefulResponses": false: kāore a Shannon e rongoā i ngā whakautu. Mō Anthropic Messages, ko https://api.shannon-ai.com/v1/messages me te "apiType": "messages".
  • Ki te whakamahi i ēnei model i ngā huihuinga Copilot harness me whai i te tautuhinga whakamātau chat.agentHost.byokModels.enabled.

Ngā tohutohu

  1. Tāpirihia ngā ture kaupapa ki .github/copilot-instructions.md ki AGENTS.md rānei; ka tuhi, ka whakahou rānei te /init i roto i te chat i a rātou mai i te wāhi mahi.
  2. Patapatai i te # hei tāpiri kōnae, tohu rānei, te #codebase hei rapu i te wāhi mahi mō te waehere hāngai, me te #fetch hei pānui i tētahi whārangi tukutuku.
  3. Ka whakatuwhera te Ctrl+Alt+I (⌃⌘I i macOS) i te tirohanga Chat, ā, ka whakatuwhera te Ctrl+I (⌘I) i te chat i roto i te rārangi i te ētita; ka whakatuwhera te /models i te kaitīpako model.
  4. Ka whakaatu te mana horopaki i te whakauru chat i te nui o te matapihi e whakamahia ana e tētahi chat; patapatai i te /compact hei whakarāpopoto i tētahi huihuinga roa mā koe anō.
  5. Ka tiakina e VS Code tētahi pūtohu o ngā kōnae e pāngia ana i mua i ia tono; pōkai ki runga i tētahi tono ka tīpako i Restore Checkpoint hei hoki ki taua wā.

Te whakatika raruraru

TohuTakeWhakatika
Kei te ngaro te model i te aratau Agent He false te toolCalling, kāore rānei i te reira. Tautuhia te "toolCalling": true ka tiaki.
Ngā hapa Responses API mō ngā karanga taputapu kei te ngaro Ka tuku a VS Code i te previous_response_id ā-taunoa; kāore a Shannon e pupuri i ngā whakautu. Tāpirihia te "statefulResponses": false ki te model.
Kāore he taitara chat, he karere commit rānei Kāore koe i uru ki GitHub, nā reira kāore he model āwhina e wātea. Tautuhia te chat.byokUtilityModelDefault te chat.utilityModel rānei ki te model Shannon.
401 Unauthorized Kei te ngaro te key, kua hē te pato, kua hurihia rānei. Tāruatia anō te key mai i Keys & usage; ka tīmata ki te sk-.
context_length_exceeded, te karere "prompt is too long" rānei He roa ake te kōrero i te matapihi horopaki o te model. Tīmatahia he kōrerorero hou, tukuna te taputapu kia whakamāmā, kōwhiria rānei he model he nui ake te matapihi.
insufficient_quota Kāore e rawaka tō toenga hei utu i te tono. Tāpiri nama, huri mahere rānei; kāore te tono e ngana anō ko ia anake.

Ngā pātai

Ka mahi a GitHub Copilot i VS Code me Shannon?

Āe, mā te kaiwhakarato Custom Endpoint me te url model https://api.shannon-ai.com/v1/chat/completions.

Me hiahia au ki tētahi mahere Copilot?

Kāo, kāore mō te chat me te aratau agent i ngā huihuinga Local harness. Ka hiahia tonu ngā marohi i roto i te rārangi ki a Copilot.

Kei te whakamahia tonutia te kaiwhakarato OpenAI Compatible tawhito?

Kāo. Kua whakakapia e Custom Endpoint, ā, kua whakakorea te github.copilot.chat.customOAIModels.

Kōwhiria tō reo

He ōrite ngā reo katoa. Kōwhiria te reo e hiahia ana koe ki te whakamahi.

Ūropi

Te Rāwhiti Waenga me Āwherika ki te Raki

Āhia ki te Tonga

Āhia ki te Tonga-ma-Rāwhiti

Āhia ki te Rāwhiti

Āhia Waenga me Kōkahu

Āwherika

Te Moana-nui-a-Kiwa

Reo Hanga me te Reo Tawhito