Tlola ho ea ho litaba
LLM

Lisebelisoa tsa command-line

Sebelisa LLM le Shannon

Ngolisa li-id tsa Shannon ho extra-openai-models.yaml ea LLM, boloka senotlolo ka llm keys set, 'me u kope li-model tsa Shannon ho tsoa ho shell.

  • E lekiloe 2026 Pun 7
  • OpenAI Chat Completions
  • Metsotso e ka bang 2

Mabapi le LLM

LLM ke sesebelisoa sa mohala oa litaelo le laeborari ea Python ea Simon Willison ea ho kopa li-model ho tsoa ho shell, ho kenya lifaele ka pipe le ho ngola phapanyetsano e 'ngoe le e 'ngoe ho SQLite. Li-model tse lumellanang le OpenAI li eketsoa faeleng e nyane ea YAML, kahoo li-model tsa Shannon li sebetsa ho li-prompt, li-chat, li-template le tool calls.

Seo u se hlokang

Senotlolo sa API sa Shannon
Linotlolo le tšebeliso
Base URL
https://api.shannon-ai.com/v1 Endpoint: /v1/chat/completions
Snippet e 'ngoe le e 'ngoe e ka tlase e latela khetho ea hau.

E hlophise

  1. Kenya LLM

    Shell
    pipx install llm
  2. Ngolisa model ea Shannon

    Theha extra-openai-models.yaml foldareng ea config ea LLM; dirname "$(llm logs path)" e hatisa hore e kae. api_key_name e bitsa senotlolo se bolokiloeng.

    extra-openai-models.yaml
    - model_id: shannon-3
      model_name: shannon-3
      api_base: "https://api.shannon-ai.com/v1"
      api_key_name: shannon
      supports_tools: true
  3. Boloka senotlolo 'me u kope

    Shell
    llm keys set shannon   # paste your key
    llm -m shannon-3 "Name three colours a cat can be."
    LLM CLI ho shannon-coder-1: model e thathamisitsoe, karabo ea mola o le mong ka mebala ea katse le pitso ea tool ea llm_version
    Ho tsamaisoa ha 'nete ho LLM 0.37.1: model e ngolisitsoeng, prompt le pitso ea tool e kenyellelitsoeng.

Hlahloba hore e a sebetsa

Romela: llm models list | grep shannon

U lokela ho bona: Id ea Shannon e thathamisitsoe e le OpenAI Chat model.

Li-model tse loketseng LLM

Id e 'ngoe le e 'ngoe e ka tlase e khotsofatsa seo LLM e se hlokang. Ea pele ke default ho li-snippet.

Id ea modelFensetere ea contextTsoa e kholo ka ho fetisisaKenyo 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

  • model_id ke lebitso leo u le thaepang ka mor'a -m; model_name ke id e romelloang ho Shannon.
  • supports_tools: true e a hlokahala pele -T kapa --functions li ka sebelisa li-tool le model.

Malebela

  1. llm models default <id> e etsa model ea Shannon e be default, kahoo -m e ka tloheloa.
  2. Kenya lifaele ka pipe: cat notes.txt | llm "Summarise this".
  3. llm chat -m <id> e boloka moqoqo o tsoelapele; llm logs e bontša li-prompt le likarabo tsa mehleng.
  4. -T llm_time --td e tsamaisa tool e kenyellelitsoeng 'me e bontša pitso e 'ngoe le e 'ngoe ea tool.

Ho rarolla mathata

MatšoaoLebakaTokiso
Unknown model Faele ea YAML ha e foldareng ea config ea LLM. E behe haufi le faele eo llm logs path e e hatisang.
401 Ha ho senotlolo se bolokiloeng tlas'a api_key_name. Tsamaisa llm keys set 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 LLM e sebetsa le Shannon?

E, e le model e eketsehileng e lumellanang le OpenAI e nang le api_base: https://api.shannon-ai.com/v1.

Na li-tool lia sebetsa?

E, ka supports_tools: true; re tsamaisitse e 'ngoe ea li-tool tse kenyellelitsoeng tsa LLM.

Kgetha puo ya hao

Dipuo tsohle di lekana. Kgetha eo o batlang ho e sebedisa ha o bala.

Yuropa

Middle East le Afrika Leboea

Asia Boroa

Asia Boroa-Botjhabela

Asia Botjhabela

Asia e Bohareng le Caucasus

Afrika

Oceania

Lipuo tse Entsoeng le tsa Khale