Peke ki ngā ihirangi
Letta

Ngā kaiwhakahaere whaiaro, motuhake hoki

Whakamahia a Letta me Shannon

Tūhonoa a Shannon ki a Letta mā te letta connect openai-compatible, ā, kōwhiria tētahi model handle Shannon mō ō kaitono.

  • I whakamātauria 7 Noe 2026
  • OpenAI Chat Completions
  • Tata ki te 3 meneti

Mō Letta

Ka hanga a Letta i ngā kaitono e pupuri ana i te mahara mō te wā roa puta noa i ngā huihuinga, nā te rōpū i muri i a MemGPT. Ko Letta Code tāna taupānga rārangi whakahau, ka taea te rere ki te kapua a Letta, ki tētahi tuara ā-rohe rānei. Ka tūhonoa tētahi kaiwhakarato hototahi-OpenAI mā te whakahau kotahi, ā, ka puta ngā model Shannon hei model handle mō tētahi kaitono.

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. Whakaurua a Letta Code

    Shell
    npm install -g @letta-ai/letta-code
  2. Tūhonoa a Shannon

    Ka tirotiro te connect openai-compatible i te key, ā, ka penapena i te kaiwhakarato. Me te --backend local, ka noho ngā kaitono me te kaiwhakarato ki tō mīhini.

    Shell
    letta --backend local connect openai-compatible \
      --base-url https://api.shannon-ai.com/v1 \
      --api-key YOUR_API_KEY
  3. Whakahaerehia tētahi kaitono i runga i te model Shannon

    Ka puta ngā id Shannon hei openai-compatible/<id>; ka whakaatu te letta --backend local model list i a rātou.

    Shell
    letta --backend local -m openai-compatible/Kimi-K3-uncensored-NVFP4 -p "Create a file hello.txt that says: the brown dog digs."
    Letta Code i tētahi terminal: connect openai-compatible ki a Shannon, ā, ka tuhi tētahi rere headless i hello.txt i runga i shannon-coder-1
    He rere tūturu i runga i a Letta Code 0.34.23 me te tuara ā-rohe: kua tūhonoa te kaiwhakarato, kotahi te karanga taputapu, e rua ngā tono.

Tirohia kei te mahi

Tukuna: letta --backend local model list

Me kite koe i: Ngā handle pēnei i te openai-compatible/<id> mō ia model Shannon.

Ngā model e hāngai ana ki Letta

Ka tutuki i ia id i raro iho ngā hiahia o Letta. 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

He pai kia mōhio

  • Me tautoko te endpoint i a Chat Completions me te karanga taputapu, e mahi ana ngā model Shannon o te kaitīpako.
  • Ka karanga tētahi kaitono Letta kua manaakitia ki te kapua i te kaiwhakarato mai i ngā tūmau a Letta; ka mahi hoki te URL tūmatanui a Shannon ki reira.
  • Ka pupuri ngā kaitono Letta i te mahara puta noa i ngā rere; ka rere te --ephemeral me te kore penapena kaitono.

Ngā tohutohu

  1. Ka mahi te /connect me te /model i te mahi ōrite i roto i tētahi huihuinga whakaoranga.
  2. Ka tuku te --yolo i tētahi rere headless ki te whakamahi taputapu me te kore pātai; ka mahi tonu ngā ture whakakāhore pūtake.
  3. Ka pupuri te LETTA_LOCAL_BACKEND_DIR i tētahi tūnga ā-rohe motuhake, hei tauira mō ia kaupapa.

Te whakatika raruraru

TohuTakeWhakatika
Ka rahua te "Validating … API key" Kāore te base URL e whai /v1, he hē rānei te key. Whakamahia https://api.shannon-ai.com/v1, ā, tirohia te key.
--ephemeral cannot be used with --new-agent I tukuna ngā haki e rua. Whakamahia te --ephemeral anake mō tētahi rere kotahi.
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 Letta me Shannon?

Āe, hei kaiwhakarato openai-compatible i tūhonoa mā te letta connect.

Ko tēhea model hei whakamahi mā tētahi kaitono Letta?

He model he karanga taputapu, he matapihi roa hoki, i te mea ka pupuri a Letta i ngā poraka mahara ki te horopaki.

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