Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
- Update toolkit version to 1.0.2 in description
- Modify description to mention Claude 3.5 models specifically
- Change default model to claude-3-5-sonnet-20240620
- Update model flag example in CLI usage table
  • Loading branch information
RMNCLDYO committed Jun 24, 2024
1 parent b977299 commit dd556cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
------------------------------------------------------------------
Claude AI Toolkit
API Wrapper & Command-line Interface
[v1.0.1] by @rmncldyo
[v1.0.2] by @rmncldyo
------------------------------------------------------------------
Claude AI toolit is an API wrapper and command-line interface for Anthropic's latest Claude 3 large-language models.
Claude AI toolit is an API wrapper and command-line interface for Anthropic's latest Claude 3.5 large-language models.
| **Description** | **CLI Flag(s)** | **CLI Usage** |
|------------------------------- |--------------------------- |------------------------------------------------------- |
Expand All @@ -23,7 +23,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
| User prompt | `-p`, `--prompt` | --prompt "Craft in depth lesson plans on any subject" |
| Image file path or url | `-i`, `--image` | --image "image_path_or_url" |
| API key for authentication | `-a`, `--api_key` | --api_key "your_api_key" |
| Model to use | `-m`, `--model` | --model "claude-3-opus-20240229" |
| Model to use | `-m`, `--model` | --model "claude-3-5-sonnet-20240620" |
| Enable streaming mode | `-s`, `--stream` | --stream |
| System prompt (instructions) | `-sp, '--system_prompt` | --system_prompt "You are an advanced AI assistant" |
| Maximum tokens to generate | `-mt`, `--max_tokens` | --max_tokens 1024 |
Expand All @@ -41,7 +41,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
parser.add_argument('-p', '--prompt', type=str, help='Text or Vision prompt', metavar='')
parser.add_argument('-i', '--image', type=str, help='Image file path or url', metavar='')
parser.add_argument('-a', '--api_key', type=str, help='Claude API key for authentication', metavar='')
parser.add_argument('-m', '--model', type=str, default='claude-3-opus-20240229', help='The model you would like to use', metavar='')
parser.add_argument('-m', '--model', type=str, default='claude-3-5-sonnet-20240620', help='The model you would like to use', metavar='')
parser.add_argument('-s', '--stream', action='store_true', help='Enable streaming mode for responses')
parser.add_argument('-sp', '--system_prompt', type=str, help='Initial system prompt (instructions)', metavar='')
parser.add_argument('-mt', '--max_tokens', type=int, help='Maximum number of tokens to generate', metavar='')
Expand Down

0 comments on commit dd556cb

Please sign in to comment.