Open bakongi opened 3 months ago
Great work! Thanks 🚀 We'll implement it in the coming next update
I'd forgotten...
in "verba_manager.py" add:
# Check Anthropic ENV KEY
try:
import anthropic
anthropic_key = os.environ.get("ANTHROPIC_API_KEY", "")
if anthropic_key != "":
self.environment_variables["ANTHROPIC_API_KEY"] = True
anthropic.api_key = anthropic_key
except Exception:
self.environment_variables["ANTHROPIC_API_KEY"] = False
and
try:
import anthropic
self.installed_libraries["anthropic"] = True
except Exception:
self.installed_libraries["anthropic"] = False
Hi everyone. As you know some latest Anthropic's Claude models is better and chaeper than OpenaAI models. So I create a new generator file to use Anthropic's models. and made changes to manager.py file in goldenverba/components/generation
generation.zip
Install Anthropic library:
pip install anthropic
and you should add this variables to your environment (or .env file):
You will need API key from Anthropic at https://console.anthropic.com/
Available models:
P.S. The generator's code made with help of Claude and GPT-3.5/4