mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-16 07:23:23 -05:00
[PR #34] [MERGED] Resolved an Issue: The Claude LLM instance call - ChatAnthropic() #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/34
Author: @Madhuvod
Created: 11/29/2024
Status: ✅ Merged
Merged: 11/29/2024
Merged by: @Shubhamsaboo
Base:
main← Head:meeting-agent📝 Commits (1)
275432fcalling the llm through crewai instead of langchain📊 Changes
1 file changed (+7 additions, -12 deletions)
View changed files
📝
ai_agent_tutorials/ai_meeting_agent/meeting_agent.py(+7 -12)📄 Description
So in the meeting_agent.py, the existing code has been using both openai's gpt4o and anthropic's sonnet. these were being called through langchain's llm classes; ChatOpenAI() and ChatAnthropic().
When I first tried to run the app, I got this error specifically:
Went through the litellm docs, langchain docs and couldn't really figure out what it meant. I realised that the model attribute has been changed from ChatAnthropic(model_name = ) to ChatAnthropic(model = )
But I still got the same error along with the SerperDevTool() error.
So the changes were:
from crewai.process import Process
that's about it. now, it works completely fine:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.