Skip to content

gptscript-ai/anthropic-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • You need either ANTHROPIC_API_KEY or AWS credentials and region configured, depending on which model you want to use.
export ANTHROPIC_API_KEY=<your-api-key>

Usage Example

gptscript --default-model='claude-3-haiku-20240307 from github.com/gptscript-ai/anthropic-provider' examples/helloworld.gpt

Development

Run using the following commands

python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
./run.sh
export OPENAI_BASE_URL=http://127.0.0.1:8000/v1
export GPTSCRIPT_DEBUG=true

# one of the anthropic-hosted models
gptscript --default-model=claude-3-opus-20240229 examples/bob.gpt

# Claude on Bedrock
gptscript --default-model=anthropic.claude-3-sonnet-20240229-v1:0 examples/bob.gpt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published