Ngā tuhipoka, te pūtirotiro me te whakamāori
Whakamahia a Pot me Shannon
Tāpirihia te ratonga whakamāori OpenAI whakauru a Pot me te URL chat completions a Shannon hei Request Path, tō key me tētahi model Shannon.
- Nō ngā tuhinga a Pot, 7 Noe 2026
- OpenAI Chat Completions
- Tata ki te 2 meneti
Mō Pot
Ko Pot he kaiwhakamāori mō Windows, macOS me Linux e whakamāori ana i te kuputuhi kua tīpakohia, ngā whakaahua mata rānei, i tētahi matapihi pae-pūkaha, me OCR me te kuputuhi-ki-kōrero. Ka whakaatu i ngā hua mai i ngā ratonga maha i te taha o tētahi i tētahi. Ina tohua te ratonga OpenAI ki a Shannon, ka puta tētahi o ērā hua mai i tētahi model Shannon.
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
-
Tāpirihia te ratonga OpenAI
Huakina ngā tautuhinga a Pot, haere ki Service Settings → Translate, pāwhiria Add Service → Add Builtin Service ka kōwhiria OpenAI.
-
Tohua ki a Shannon
Waiho Service Provider ki OpenAI. Whakauruhia te URL chat completions katoa hei Request Path, tō key hei Api Key me tētahi id Shannon hei Model. Whakahohea Stream Mode mēnā e hiahia ana koe ki te kuputuhi i a ia e tae mai ana, ka Save.
OpenAI serviceService Provider: OpenAI Request Path: https://api.shannon-ai.com/v1/chat/completions Api Key: YOUR_API_KEY Model: shannon-3
Tirohia kei te mahi
Tukuna: Whakamāoritia "The dog sleeps in the sun." ki te reo Wīwī.
Me kite koe i: "Le chien dort au soleil."
Ngā model e hāngai ana ki Pot
Ka tutuki i ia id i raro iho ngā hiahia o Pot. Ko te tuatahi te taunoa i ngā wāhanga waehere.
| Id tauira | Matapihi horopaki | Output nui rawa | Input whakaahua |
|---|---|---|---|
shannon-3 | 196,608 | 65,536 | Āe |
shannon-3-pro | 196,608 | 65,536 | Āe |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Āe |
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Āe |
He pai kia mōhio
- Mēnā kāore e mutu te Request Path ki te
/chat/completions, ka tāpiri a Pot i tev1/chat/completions. No reira ka mahi hoki tehttps://api.shannon-ai.com, engari kāore tehttps://api.shannon-ai.com/v1. - Ka tautuhi te rārangi tohutohu i raro i ngā āpure i te āhua o te tono a Pot mō ngā whakamāoritanga; ka whakakapia e Pot ngā
$text,$from,$tome$detect.
Ngā tohutohu
- Whakatikahia te rārangi tohutohu hei huri i te āhua o te tono a Pot mō ngā whakamāoritanga; ka whakakapia e Pot ngā
$text,$from,$tome$detect. - Ka tāpiri Add Prompt i ētahi atu karere ki ngā mea e tukuna ana e Pot.
- Whakahohea Stream Mode kia kite i te whakamāoritanga i a ia e tuhia ana.
- Ka taea e ētahi atu taupānga te whakaoho i a Pot mā tōna tauranga HTTP rohe (
127.0.0.1:<port>).
Te whakatika raruraru
| Tohu | Take | Whakatika |
|---|---|---|
| 404 Not Found | Ka mutu te Request Path ki te /v1, no reira ka hanga a Pot i te /v1/v1/chat/completions. | Whakamahia https://api.shannon-ai.com/v1/chat/completions. |
| "model not found" | Kei te noho tonu te gpt-3.5-turbo taunoa i Model. | Whakauruhia tētahi id 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 Pot me Shannon?
Āe, me te ratonga OpenAI me te Request Path https://api.shannon-ai.com/v1/chat/completions.
Ka taea e au te pupuri i ngā model Shannon maha i Pot?
Āe. Tāpirihia te ratonga OpenAI kotahi mō ia model; ka hoatu e ia he hua motuhake i te matapihi whakamāori.