joaomdmoura / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
16.74k stars 2.26k forks source link

Using Anthropic's Claude 3 rather than OpenAI's GPT models #752

Open atulkkwater opened 2 weeks ago

atulkkwater commented 2 weeks ago

How can I use Anthropic's Claude 3 rather than OpenAI's GPT models? I think, giving this is an open source project, you must have this flexibility of modifying ai calls. So please lemme know how can we do that. Which file I have to change to accommodate the Anthropic.

raulduke9119 commented 2 weeks ago

from langchain_anthropic import ChatAnthropic

u need to define the llm :

anthropic_llm = ChatAnthropic(model=modelnameifllmuwannause)

then u need to add llm Parameter to each agent what is equal anthropic_llm

KK Water @.***> schrieb am Di., 11. Juni 2024, 04:35:

How can I use Anthropic's Claude 3 rather than OpenAI's GPT models? I think, giving this is an open source project, you must have this flexibility of modifying ai calls. So please lemme know how can we do that. Which file I have to change to accommodate the Anthropic.

— Reply to this email directly, view it on GitHub https://github.com/joaomdmoura/crewAI/issues/752, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANTFTIHAA6RNXENZZCU336LZGZO5RAVCNFSM6AAAAABJDM3T4WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DKMRTHE3TKNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>