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/v1Pito mutunga:/v1/chat/completions - Ka whai ia wāhanga waehere i raro iho i tō kōwhiringa.
Whakaritea
-
Whakaurua a Letta Code
Shellnpm install -g @letta-ai/letta-code -
Tūhonoa a Shannon
Ka tirotiro te
connect openai-compatiblei te key, ā, ka penapena i te kaiwhakarato. Me te--backend local, ka noho ngā kaitono me te kaiwhakarato ki tō mīhini.Shellletta --backend local connect openai-compatible \ --base-url https://api.shannon-ai.com/v1 \ --api-key YOUR_API_KEY -
Whakahaerehia tētahi kaitono i runga i te model Shannon
Ka puta ngā id Shannon hei
openai-compatible/<id>; ka whakaatu teletta --backend local model listi a rātou.Shellletta --backend local -m openai-compatible/Kimi-K3-uncensored-NVFP4 -p "Create a file hello.txt that says: the brown dog digs."
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 tauira | Matapihi horopaki | Output nui rawa | Input 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
--ephemeralme te kore penapena kaitono.
Ngā tohutohu
- Ka mahi te
/connectme te/modeli te mahi ōrite i roto i tētahi huihuinga whakaoranga. - Ka tuku te
--yoloi tētahi rere headless ki te whakamahi taputapu me te kore pātai; ka mahi tonu ngā ture whakakāhore pūtake. - Ka pupuri te
LETTA_LOCAL_BACKEND_DIRi tētahi tūnga ā-rohe motuhake, hei tauira mō ia kaupapa.
Te whakatika raruraru
| Tohu | Take | Whakatika |
|---|---|---|
| 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.