Whakamahia a tgpt me Shannon
Whakahaerehia a tgpt me te kaiwhakarato openai, te URL chat completions a Shannon, tētahi model me tō key mō ngā whakautu tere i runga i ngā model Shannon.
- I whakamātauria 7 Noe 2026
- OpenAI Chat Completions
- Tata ki te 1 meneti
Mō tgpt
Ko tgpt he kōnae rua Go kotahi mō te chat ki ngā model i te tāmuri, me ngā whakautu kotahi-tukunga, tētahi aratau whakawhitiwhiti me te āwhina whakahau-anga. Ka whakaae tana kaiwhakarato openai ki tētahi URL, model me key ritenga, no reira ka taea e ia te whakautu ki ngā 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
-
Pātai tētahi pātai
Ka tango te
--urli te endpoint katoa, tae atu ki te/chat/completions.Shelltgpt --provider openai \ --url https://api.shannon-ai.com/v1/chat/completions \ --model shannon-3 \ --key YOUR_API_KEY \ "Name three colours a cat can be."
He rere pono i runga i a tgpt 2.15.0 me ngā haki i runga ake. -
Tautuhia rānei kotahi i te taiao
Ka whakakapi te
AI_PROVIDERme teAI_API_KEYi ngā haki; waiho te URL me te model i te raina whakahau, i tētahi kēhi rānei.Shellexport AI_PROVIDER=openai AI_API_KEY=YOUR_API_KEY alias tshannon='tgpt --url https://api.shannon-ai.com/v1/chat/completions --model shannon-3'
Tirohia kei te mahi
Tukuna: tgpt -q --provider openai --url … "Say hi to a dog."
Me kite koe i: He mihi raina kotahi.
Ngā model e hāngai ana ki tgpt
Ka tutuki i ia id i raro iho ngā hiahia o tgpt. 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
- Ki te kore te
--provider openai, ka whakamahi a tgpt i tōna ake kaiwhakarato taunoa kāore e tae ki a Shannon. - Me te URL chat completions katoa te
--url, ehara i te base/v1.
Ngā tohutohu
- Ka tā noa te
-qi te whakautu, kāore he nekehanga utaina. - Ka tā te
-wi te whakautu katoa i te wā kotahi kaua e rere. - Ka huri te
-si tētahi tono hei whakahau anga ka pātai i mua i te whakahaere.
Te whakatika raruraru
| Tohu | Take | Whakatika |
|---|---|---|
404 Not Found | Ko te --url te base /v1. | Tāpirihia te /chat/completions. |
| He whakautu mai i tētahi atu ratonga | Kei te ngaro te --provider. | Tukuna te --provider openai tautuhia rānei te AI_PROVIDER=openai. |
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 tgpt me Shannon?
Āe, me te --provider openai me te --url https://api.shannon-ai.com/v1/chat/completions.
Ka rere ia?
Āe, ma te taunoa; ka tatari te -w mō te whakautu katoa.