Sebelisa ShellGPT le Shannon
Seta API_BASE_URL, senotlolo le DEFAULT_MODEL ho .sgptrc ea ShellGPT 'me u botse li-model tsa Shannon ho tsoa ho terminal ka sgpt.
- E lekiloe 2026 Pun 7
- OpenAI Chat Completions
- Metsotso e ka bang 2
Mabapi le ShellGPT
ShellGPT, e tsamaisoang e le sgpt, e araba lipotso ho terminal, e ngola litaelo tsa shell le code, 'me e boloka li-session tsa chat. E bua OpenAI API 'me e bala base URL ea eona faeleng ea config, kahoo e sebetsa ho li-model tsa Shannon.
Seo u se hlokang
- Senotlolo sa API sa Shannon
- Linotlolo le tšebeliso
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Snippet e 'ngoe le e 'ngoe e ka tlase e latela khetho ea hau.
E hlophise
-
Kenya ShellGPT
Shellpipx install shell-gpt -
E supe ho Shannon
Lokisa
~/.config/shell_gpt/.sgptrc(sgpt e e theha ha e qala la pele 'me e boloka mela e meng).~/.config/shell_gpt/.sgptrcOPENAI_API_KEY=YOUR_API_KEY API_BASE_URL=https://api.shannon-ai.com/v1 DEFAULT_MODEL=shannon-3
Hlahloba hore e a sebetsa
Romela: sgpt "Say hello to a dog."
U lokela ho bona: Lumelo e khutšoanyane ho tsoa ho model ea Shannon.
Li-model tse loketseng ShellGPT
Id e 'ngoe le e 'ngoe e ka tlase e khotsofatsa seo ShellGPT e se hlokang. Ea pele ke default ho li-snippet.
| Id ea model | Fensetere ea context | Tsoa e kholo ka ho fetisisa | Kenyo ea setšoantšo |
|---|---|---|---|
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 |
Ho molemo ho tseba
API_BASE_URLe tlameha ho qetella ka/v1.- Ka ho kenya ha rona,
pip install shell-gpt1.5.1 e ile ea siea phutheho eaclick'mesgptea hloleha kaNo module named 'click';pip install clicke ile ea e lokisa. - Ka
OPENAI_USE_FUNCTIONS=true(default), sgpt e romela litlhaloso tsa eona tsa function kopong e 'ngoe le e 'ngoe; e seta hofalsebakeng sa chat e bonolo e nang le tokens tse fokolang.
Malebela
sgpt --model <id>e khetha model e 'ngoe ea Shannon bakeng sa potso e le 'ngoe.sgpt --shelle botsa pele e tsamaisa taelo;--no-interactione e hatisa feela.sgpt --chat <name>e boloka moqoqo o rehiloeng;--repl <name>e bula o sebetsanang.- Kenya input ka pipe:
git diff | sgpt "Write a commit message".
Ho rarolla mathata
| Matšoao | Lebaka | Tokiso |
|---|---|---|
404 Not Found | API_BASE_URL ha e na /v1. | Sebelisa https://api.shannon-ai.com/v1. |
401 | Senotlolo se sa tsoa kae se setiloe ho environment, se hatellang .sgptrc. | Tlosa OPENAI_API_KEY ho shell kapa u e seta ho senotlolo sa hau sa Shannon. |
401 Unauthorized | Senotlolo ha se eo, se ngotsoe hampe kapa se fetotsoe. | Kopitsa senotlolo hape ho tsoa ho Keys & usage; se qala ka sk-. |
context_length_exceeded / “prompt is too long” | Puisano e telele ho feta window ea model. | Qala chat e ncha, tlohela tool e e compact, kapa khetha model e nang le window e kholoanyane. |
insufficient_quota | Balance ea hau e ke ke ea lefella kopo. | Eketsa credit kapa fetola plan; kopo ha e lekoe hape ka boeona. |
Lipotso
Na ShellGPT e sebetsa le Shannon?
E: seta API_BASE_URL=https://api.shannon-ai.com/v1 le DEFAULT_MODEL ho id ea Shannon.
Na e ka tsamaisa litaelo tseo e li fanang?
E, sgpt --shell e fana ka ho li tsamaisa ka mor'a hore u netefatse.
Litataiso tse amanang
- LLM Sesebelisoa sa Simon Willison sa mohala oa litaelo le laeborari ea Python bakeng sa li-model tsa puo
- AIChat Sesebelisoa sa chat ea terminal, thuso ea shell, RAG le agent se kopaneng, se ngotsoeng ka Rust
- Mods Sesebelisoa sa Charm se bolokiloeng ka archive sa ho fetisa tse tsoang litaelong ka model