ໃຊ້ Junie CLI ກັບ Shannon
ອະທິບາຍ Shannon ໃນ model profile JSON ທີ່ ~/.junie/models ແລ້ວເລີ່ມ Junie ດ້ວຍ --model custom:shannon.
- ອີງຕາມເອກະສານຂອງ Junie CLI, 7 ພ.ຈ. 2026
- OpenAI Chat Completions
- ປະມານ 3 ນາທີ
ກ່ຽວກັບ Junie CLI
Junie CLI ແມ່ນເອເຈັນຂຽນໂຄ້ດຂອງ JetBrains ສຳລັບ terminal. ມັນກວດ, ຂຽນ ແລະ ແກ້ໄຂໂຄ້ດໃນໂປຣເຈັກຂອງທ່ານ, ແລ່ນຄຳສັ່ງ ແລະ ການທົດສອບ, ມີໂໝດ plan ແລະ debug, MCP server ແລະ slash command ທີ່ກຳນົດເອງ. Custom model profile ຊີ້ມັນມາທີ່ Shannon ດັ່ງນັ້ນທຸກຮອບການເຮັດວຽກຂອງເອເຈັນຈຶ່ງແລ່ນດ້ວຍ model Shannon ທີ່ທ່ານລະບຸ.
ສິ່ງທີ່ທ່ານຕ້ອງການ
- Shannon API key ໜຶ່ງອັນ
- ໜ້າ Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - ທຸກ snippet ດ້ານລຸ່ມປ່ຽນຕາມທີ່ທ່ານເລືອກ.
ຕັ້ງຄ່າ
-
Export API key ຂອງທ່ານ
Profile ອ້າງເຖິງມັນເປັນ
${SHANNON_API_KEY}ດັ່ງນັ້ນມັນຈຶ່ງບໍ່ຢູ່ໃນໄຟລ໌.Shellexport SHANNON_API_KEY=YOUR_API_KEY -
ຂຽນ model profile
Junie ອ່ານ profile ຈາກ
~/.junie/models/*.json(ຫຼື.junie/models/ໃນໂປຣເຈັກ); ຊື່ໄຟລ໌ຄື id ຂອງ profile.baseUrlແມ່ນ endpoint ເຕັມ: Junie ບໍ່ເພີ່ມ path ໃສ່ມັນ.~/.junie/models/shannon.json{ "baseUrl": "https://api.shannon-ai.com/v1/chat/completions", "id": "Kimi-K3-uncensored-NVFP4", "displayName": "Kimi-K3-uncensored-NVFP4", "providerName": "Shannon", "apiType": "OpenAICompletion", "apiKey": "${SHANNON_API_KEY}", "maxContextLength": 1022976 } -
ເລີ່ມ Junie ດ້ວຍ profile
Custom profile ໃຊ້ prefix
custom:. ໃນ session ທີ່ກຳລັງແລ່ນ,/modelສະແດງລາຍການໃນແຖບ Custom.Shelljunie --model custom:shannon
ກວດວ່າມັນໃຊ້ໄດ້
ສົ່ງ: ແລ່ນການທົດສອບ ແລ້ວແກ້ສິ່ງທີ່ລົ້ມເຫຼວ.
ທ່ານຄວນເຫັນ: Junie ອ່ານໂປຣເຈັກ, ແລ່ນການທົດສອບດ້ວຍ tool ຂອງມັນ ແລະ ແກ້ໄຂໂຄ້ດທີ່ລົ້ມເຫຼວ.
model ທີ່ເໝາະກັບ Junie CLI
ທຸກ id ດ້ານລຸ່ມຕອບສະໜອງສິ່ງທີ່ Junie CLI ຕ້ອງການ. ອັນທຳອິດເປັນຄ່າເລີ່ມຕົ້ນໃນ snippet.
| id ຂອງ model | ໜ້າຕ່າງ context | output ສູງສຸດ | ຮູບພາບເປັນ input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | ມີ |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | ມີ |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | ມີ |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | ມີ |
shannon-3 | 196,608 | 65,536 | ມີ |
ການຕັ້ງຄ່າ model
Junie CLI ຂໍຄ່າເຫຼົ່ານີ້. ພວກມັນປ່ຽນຕາມ model ທີ່ທ່ານເລືອກ.
| ການຕັ້ງຄ່າ | ຄ່າ | ເປັນຫຍັງ |
|---|---|---|
maxContextLength | 1022976 | context window ຂອງ model. |
ຄວນຮູ້
- ຄຳຂໍສົ່ງຕົງໄປຫາ Shannon ດ້ວຍ key ຂອງທ່ານ. ໜ້າ headless-mode ຂອງ Junie ຍັງຂໍ Junie auth token ນຳ; ກວດເບິ່ງວ່າການຕັ້ງຄ່າຂອງທ່ານຕ້ອງໃຊ້ຫຼືບໍ່ເມື່ອໃຊ້ custom model.
- ຖ້າບໍ່ມີ block
fasterModel, Junie ໃຊ້ model ດຽວກັນສຳລັບໜ້າທີ່ຊ່ວຍຂອງມັນ (ສະຫຼຸບ, ຈັດປະເພດ). ເພີ່ມ"fasterModel": { "id": "<id>" }ເພື່ອໃຫ້ມັນໃຊ້ model Shannon ອື່ນ. apiTypeຍັງເປັນOpenAIResponses(https://api.shannon-ai.com/v1/responses) ຫຼືAnthropic(https://api.shannon-ai.com/v1/messages) ໄດ້; ແຕ່ລະແບບຕ້ອງໃສ່ endpoint ເຕັມໃນbaseUrl.- Profile ໃນ
.junie/models/ຂອງໂປຣເຈັກສາມາດ commit ໄດ້; ເກັບ key ເປັນ${SHANNON_API_KEY}ຢູ່ບ່ອນນັ້ນ.
ເຄັດລັບ
- Junie ອ່ານແນວທາງຂອງໂປຣເຈັກຈາກ
.junie/AGENTS.mdຫຼື ຈາກAGENTS.mdໃນ root ຂອງໂປຣເຈັກ;~/.junie/AGENTS.mdເກັບກົດສຳລັບທຸກໂປຣເຈັກຂອງທ່ານ. - ຕັ້ງ
JUNIE_MODEL=custom:shannonໃນ shell profile ຂອງທ່ານເພື່ອເລີ່ມດ້ວຍ Shannon ໂດຍບໍ່ຕ້ອງໃສ່--model; flag ໃນ command line ຍັງມີບູລິມະສິດກວ່າ. Shift+Tabສະຫຼັບລະຫວ່າງໂໝດ default, plan ແລະ debug;/planເປີດ ແລະ ປິດໂໝດ plan./stats(ຫຼື/usageຫຼື/cost) ສະແດງການໃຊ້ token ຂອງ session ຄຽງຂ້າງຍອດລວມທັງໝົດຂອງທ່ານ.junie --resumeສືບຕໍ່ session ລ່າສຸດ, ແລະ/historyຄົ້ນຫາ session ກ່ອນໜ້າເພື່ອສືບຕໍ່.
ການແກ້ໄຂບັນຫາ
| ອາການ | ສາເຫດ | ວິທີແກ້ |
|---|---|---|
| Profile ໂຫຼດບໍ່ໄດ້ ແລະ ບອກຊື່ຕົວແປທີ່ຂາດ | SHANNON_API_KEY ບໍ່ໄດ້ຕັ້ງໃນ shell ທີ່ເລີ່ມ Junie. | Export ມັນ, ຫຼືໃສ່ key ໃນ apiKey ໂດຍກົງ. |
404 ຫຼື 405 ຈາກ API | baseUrl ຈົບທີ່ /v1; Junie ໃຊ້ມັນເປັນ URL ເຕັມ. | ໃຊ້ https://api.shannon-ai.com/v1/chat/completions. |
ຫາ custom:shannon ບໍ່ເຫັນ | ໄຟລ໌ບໍ່ຢູ່ໃນ ~/.junie/models/ ຫຼື .junie/models/, ຫຼືມີຊື່ອື່ນ. | id ຫຼັງ custom: ແມ່ນຊື່ໄຟລ໌ທີ່ບໍ່ມີ .json. |
401 Unauthorized | ບໍ່ມີ key, ພິມຜິດ ຫຼື ຖືກປ່ຽນແລ້ວ. | ຄັດລອກ key ໃໝ່ຈາກ Keys & usage; ມັນຂຶ້ນຕົ້ນດ້ວຍ sk-. |
context_length_exceeded ຫຼື ຂໍ້ຄວາມ "prompt is too long" | ການສົນທະນາຍາວກວ່າ context window ຂອງ model. | ເລີ່ມ chat ໃໝ່, ໃຫ້ tool ບີບອັດມັນ, ຫຼື ເລືອກ model ທີ່ມີ window ໃຫຍ່ກວ່າ. |
insufficient_quota | ຍອດເງິນຂອງທ່ານບໍ່ພໍຈ່າຍສຳລັບຄຳຮ້ອງຂໍນີ້. | ເຕີມເຄຣດິດ ຫຼື ປ່ຽນແຜນ; ຄຳຮ້ອງຂໍຈະບໍ່ຖືກລອງໃໝ່ເອງ. |
ຄຳຖາມ
Junie CLI ໃຊ້ກັບ Shannon ໄດ້ບໍ?
ໄດ້, ຜ່ານ custom model profile ທີ່ມີ apiType OpenAICompletion ແລະ baseUrl https://api.shannon-ai.com/v1/chat/completions.
ຂ້ອຍແບ່ງປັນ profile ກັບທີມໄດ້ບໍ?
ໄດ້: ວາງມັນໃນໂຟນເດີ .junie/models/ ຂອງໂປຣເຈັກ ແລະ ອ້າງ key ເປັນ ${SHANNON_API_KEY}.