Peke ki ngā ihirangi
Factory Droid

Ngā kaiwhakahaere code

Whakamahia a Factory Droid me Shannon

Tāpirihia a Shannon ki customModels i ~/.factory/settings.json me te kaiwhakarato Chat Completions whānui, ā, kōwhiria i raro i Custom Models i /model.

  • Nō ngā tuhinga a Factory Droid, 7 Noe 2026
  • OpenAI Chat Completions
  • Tata ki te 3 meneti

Mō Factory Droid

Ko Factory Droid he agent waehere e rere ana i te terminal, i te taupānga papamahi Factory, ā, headless i ngā tuhinga me CI mā droid exec. Ka whakamahere, ka whakatika i te waehere, ka whakahaere i ngā whakahau i raro i ngā taumata mana motuhake e tautuhia ana e koe, ā, ka tuku wāhanga o tētahi mahi ki ngā droid ritenga. Hei model ritenga i settings.json, ka kaitaki a Shannon i a Droid i te CLI me te taupānga papamahi.

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. Kia tāpua mai tō key API

    Ka pānui te settings.json i a ia hei ${SHANNON_API_KEY}.

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
  2. Tāpirihia a Shannon hei model ritenga

    Tāpirihia tēnei urunga ki te rārangi customModels i ~/.factory/settings.json. I te CLI kei raro i /settings → Custom models → Add model te puka ōrite; i te taupānga papamahi kei raro i Settings → Custom Models.

    ~/.factory/settings.json
    {
      "customModels": [
        {
          "model": "Kimi-K3-uncensored-NVFP4",
          "displayName": "Shannon",
          "baseUrl": "https://api.shannon-ai.com/v1",
          "apiKey": "${SHANNON_API_KEY}",
          "provider": "generic-chat-completion-api",
          "maxContextLimit": 760832,
          "maxOutputTokens": 262144,
          "noImageSupport": false
        }
      ]
    }
  3. Kōwhiria te model, ā, whakahaerea

    I droid, whakahaerea te /model, ā, kōwhiria a Shannon i raro i Custom Models. Ka whakaingoatia e te droid exec ko custom: + te ingoa whakaatu (ngā mokowā hei tohu) + tōna taupū i te rārangi:

    Shell
    droid exec --model "custom:Shannon-0" "Explain what this repository does."

Tirohia kei te mahi

Tukuna: Whakamāramahia te mahi a tēnei rokiroki.

Me kite koe i: Ka pānui a Droid i ngā kōnae ki āna taputapu, ā, ka whakautu me te model Shannon.

Ngā model e hāngai ana ki Factory Droid

Ka tutuki i ia id i raro iho ngā hiahia o Factory Droid. 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 Factory Droid i ēnei uara. Ka whai rātou i te model i kōwhiria e koe.

TautuhingaUaraHe aha ai
maxContextLimit 760832 Ka tono a Factory i te matapihi tango i maxOutputTokens.
maxOutputTokens 262144 Te whakautu roa rawa.

He pai kia mōhio

  • Ka noho te key ki tō pūrere. Ka mahi ngā model ritenga i te CLI Droid me te taupānga papamahi, kaua i ngā taupānga tukutuku, pūkoro rānei a Factory.
  • Ka whakakiki a Droid i tōna tepe whakakiki (250,000 token mā te taunoa) ahakoa he nui ake te maxContextLimit. Whakanuia te Default compaction token limit i /settings kia whakamahia te nui ake o te matapihi.
  • Kāore ngā model generic-chat-completion-api e whiwhi whakaahua mēnā kāore te noImageSupport i te false.
  • Ka whakamātau anake a Factory i ngā model OpenAI me Anthropic i ō rātou API whaimana. Kāore a Droid e whakaū i te prompt caching mā te kaiwhakarato whānui.

Ngā tohutohu

  1. Ka pānui a Droid i AGENTS.md (me CLAUDE.md) mai i te kōpaki o nāianei ki runga ki te pūtake git; kei ~/.factory/ ngā taunoa mō ō kaupapa katoa.
  2. Ka whakawhiti te Shift+Tab i waenga i te Normal me te Spec Mode, ka whakamahere i mua i te whakatika; ka huri te Ctrl+L i te taumata mana motuhake mai i Off ki High.
  3. Ko te droid exec he pānui anake mā te taunoa; tāpirihia te --auto low (te medium, high rānei) kia taea e ia te whakatika kōnae me te whakahaere whakahau.
  4. Pāwhiria te ! ki tētahi input kau mō te aratau bash, ka whakahaere i ngā whakahau ki tō shell me te kore model; ka rapu te @ i ngā kōnae hei āpiti.
  5. Ka whakaatu te /context i te nui o te matapihi e whakamahia ana e te session, ā, ka neke te /compress ki tētahi session hou me tētahi whakarāpopototanga.

Te whakatika raruraru

TohuTakeWhakatika
"Invalid provider" He hapa tuhi i provider. Whakamahia tika te generic-chat-completion-api.
Kei te ngaro te model i /model Kāore te JSON i settings.json e āhei te pānui, kei te ngaro rānei tētahi āpure e hiahiatia ana. Tirohia te wetereo; ka tiki anō a Droid i te kōnae ina tiakina.
Kāore te droid exec e kite i te model Kāore te ingoa custom: te taupū rānei e ōrite ki te urunga. Whakamahia te custom: + te ingoa whakaatu me ngā tohu + tōna tūnga timata-i-0, hei tauira custom:Shannon-0.
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 tahi a Factory Droid me Shannon?

Āe, hei model ritenga me provider generic-chat-completion-api me baseUrl https://api.shannon-ai.com/v1.

Ka taea e au te whakamahi i te hōputu Anthropic hei utu?

Āe: tautuhia te provider ki anthropic me te baseUrl ki https://api.shannon-ai.com.

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