Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Anthropic Claude support and implement valuation safety checks #80

Closed
wants to merge 1 commit into from

Conversation

rkacenski
Copy link

Changes

  • Added support for Anthropic Claude models alongside OpenAI
  • Added environment variable configuration for model selection:
    • LLM_PROVIDER: Choose between 'openai' or 'anthropic'
    • OPENAI_MODEL: Configure OpenAI model (default: gpt-4)
    • ANTHROPIC_MODEL: Configure Claude model (default: claude-3-sonnet-20240307)

Bug fixes

  • Fixed intrinsic value return keys in warren_buffett.py for consistency
  • Added safety checks for None values in DCF calculations to prevent TypeError when processing missing financial data.
  • Fixed KeyError in Warren Buffett agent by standardizing the intrinsic value dictionary key from "value" to "intrinsic_value" across all return statements.
  • Added safety checks for None values in working capital and free cash flow calculations to prevent TypeError exceptions in the valuation agent.

@virattt
Copy link
Owner

virattt commented Feb 1, 2025

This has been added!

@virattt virattt closed this Feb 1, 2025
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.

2 participants