Sebenzisa i-CrewAI ne-Shannon
Yenza i-LLM ye-CrewAI ene-prefix ye-openai/ ne-base_url yeShannon; ii-agent, imisebenzi namaqela emva koko zisebenza kwiimodeli zeShannon.
- Ivavanyiwe ngo-Nov 7, 2026
- OpenAI Chat Completions
- Malunga nemizuzu eyi-3
Malunga ne-CrewAI
I-CrewAI yisakhelo se-Python apho ii-agent ezinezindima, iinjongo nezixhobo zisebenza kwimisebenzi njengeqela, okanye ngaphakathi kweeflow ezilawulwa zizehlo. Iklasi yayo ye-LLM ihamba nge-LiteLLM, ngoko i-base URL ehambelana ne-OpenAI ikwanele ukuqhuba amaqela kwiimodeli zeShannon.
Into oyifunayo
- I-API key ye-Shannon
- Izitshixo nokusetyenziswa
- I-base URL
-
https://api.shannon-ai.com/v1I-endpoint:/v1/chat/completions - Zonke ii-snippet ezingezantsi zilandela ukhetho lwakho.
Ukuseta
-
Faka i-CrewAI
Shellpip install crewai -
Yenza i-LLM
I-prefix ye-
openai/ikhetha indlela ehambelana ne-OpenAI. Dlulisa i-context_window_size: kwii-id ezingaziwayo yi-CrewAI, ngaphandle koko icinga ukuba ngama-8,192 ee-token.Pythonfrom crewai import LLM llm = LLM( model="openai/Kimi-K3-uncensored-NVFP4", base_url="https://api.shannon-ai.com/v1", api_key="YOUR_API_KEY", context_window_size=1022976, ) print(llm.call("Name three colours a cat can be.")) -
Qhuba iqela elinesixhobo
Pythonfrom crewai import Agent, Task, Crew from crewai.tools import tool @tool("get_weather") def get_weather(city: str) -> str: """Weather for a city.""" return f"Sunny, 18 C in {city}" reporter = Agent(role="Weather reporter", goal="Report the weather", backstory="You check the weather tool.", llm=llm, tools=[get_weather], max_iter=3) task = Task(description="What is the weather in Oslo? Use the tool.", expected_output="One sentence.", agent=reporter) print(Crew(agents=[reporter], tasks=[task]).kickoff())
Jonga ukuba iyasebenza
Thumela: Qhuba isampulu yeqela.
Ufanele ubone: Isivakalisi esinye esinemozulu e-Oslo evela kwisixhobo.
Iimodeli ezifanelekileyo kwi-CrewAI
I-id nganye engezantsi iyahlangabezana noko kufunwa yi-CrewAI. Eyokuqala yeyona imiselweyo kwii-snippet.
| I-id yemodeli | Ifestile yomxholo | Ubuninzi bokuphuma | I-image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Ewe |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Ewe |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Ewe |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Ewe |
shannon-3 | 196,608 | 65,536 | Ewe |
Iisetingi zemodeli
I-CrewAI icela la maxabiso. Alandela imodeli oyikhethileyo.
| Useto | Ixabiso | Kutheni |
|---|---|---|
context_window_size | 1022976 | I-CrewAI icinga i-8,192 kwii-id ezingaziwayo ngaphandle kwayo. |
Kuhle ukwazi
- Ngaphandle kwe-
context_window_size, i-CrewAI iyalumkisa ukuba ifestile ayaziwa yaye icinga ama-8,192 ee-token (6,963 asebenzisekayo), ngoko imisebenzi emide iyanqunyulwa kwangethuba. - Nika yonke i-agent i-
llm=; i-agent engenayo isebenzisa imodeli ye-OpenAI yokuzenzekelayo ye-CrewAI kwaye ifuna isitshixo se-OpenAI. - Amaqela ane-planning okanye inkumbulo athumela izicelo ezongezelelweyo; inkumbulo ikwafuna i-embedder, engasetyenziswa yiShannon.
Iingcebiso
- I-
max_iteribeka umda wamanyathelo i-agent ewathathayo kumsebenzi. - I-
CREWAI_TRACING_ENABLED=falseithintela amaqhubo ekulandelelweni kwinkonzo ye-CrewAI. - Sebenzisa into enye ye-
LLMkwi-id nganye yeShannon uze unike ezahlukeneyo kwii-agent ezahlukeneyo.
Ukusombulula iingxaki
| Uphawu | Unobangela | Isisombululo |
|---|---|---|
LLM Provider NOT provided | I-id yemodeli ayinayo i-prefix ye-openai/. | Yibhale njenge-openai/<id>. |
401 ekhankanya i-OpenAI | I-agent okanye i-planner ayinayo i-llm kwaye isebenzisa eyokuzenzekelayo. | Dlulisa i-llm= kuyo yonke indawo, kuquka i-planning_llm. |
401 Unauthorized | Isitshixo asikho, sibhalwe gwenxa okanye sitshintshiwe. | Kopa isitshixo kwakhona kwiZitshixo nokusetyenziswa; siqala nge-sk-. |
context_length_exceeded okanye "prompt is too long" | Incoko inde kunefestile yomxholo yemodeli. | Qalisa incoko entsha, vumela i-tool iyicinezele, okanye ukhethe imodeli enefestile enkulu. |
insufficient_quota | Ibhalansi yakho ayinakuhlawula esi sicelo. | Yongeza imali okanye utshintshe iplani; isicelo asiphindwa sodwa. |
Imibuzo
Ngaba i-CrewAI isebenza neShannon?
Ewe, nge-LLM(model="openai/<id>", base_url="https://api.shannon-ai.com/v1").
Ngaba izixhobo ze-CrewAI ziyasebenza?
Ewe; siqhube iqela apho i-agent yalo yabiza isixhobo.