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

Fix anthropic_chat.py - self.temperature doesn't exist if an Anthropic client is passed into VannaBase #564

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

tdstark
Copy link
Contributor

@tdstark tdstark commented Jul 24, 2024

Context

This is a minor change. Right now, if an Anthropic client is passed into VannaBase, an error is thrown due to the fact that self.temperature doesn't exist. This shifts around some conditionals in the __init__() to resemble what's occurring in the OpenAI_Chat class, which fixes the problem.

Fix anthropic_chat.py - Currently, if an Anthropic client is passed directly into the vanna base class, it will fail because it doesn't have self.temperature. This fixes that problem.
@zainhoda zainhoda merged commit 4699d14 into vanna-ai:main Jul 25, 2024
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