Skip to content

Conversation

@fumedev
Copy link

@fumedev fumedev bot commented May 1, 2024

CHANGED

  • Updated the environment configuration in main.py to include a new line setting the Anthropic API key and removed the OpenAI API key assignment.
  • Refactored the 'Agent' class in agents.py to utilize the Anthropic API instead of OpenAI, including creating a new method 'send_message_with_anthropic' and updating method calls accordingly.
  • Implemented error handling for Anthropic API responses in agents.py, including exception handling and error logging for non-200 HTTP responses.
  • Refactored response parsing in agents.py to match the formats required by the Anthropic API.
  • Updated documentation references in README.md to replace mentions of the OpenAI API with information about the Anthropic API and how to set up and use the 'ANTHROPIC_API_KEY'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant