Skip to content

Commit

Permalink
Upgrade to new Anthropic SDK, supports Python 3.13
Browse files Browse the repository at this point in the history
Refs #16
  • Loading branch information
simonw committed Nov 4, 2024
1 parent 6c3e2fb commit b5b19b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
llm install llm-claude-3
```

The plugin may fail to install on **Python 3.13** due to a dependency problem. A temporary workaround for that problem is to run this:

```bash
llm install https://github.com/simonw/anthropic-sdk-python/archive/a6f35b4554b265d5e08c2bbe308dba65d1078cf5.zip
llm install llm-claude-3
```
See [this issue](https://github.com/simonw/llm-claude-3/issues/16) for further details.

## Usage

First, set [an API key](https://console.anthropic.com/settings/keys) for Claude 3:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ classifiers = [
]
dependencies = [
"llm>=0.17",
"anthropic>=0.37.1",
"anthropic>=0.39.0",
]

[project.urls]
Expand Down

0 comments on commit b5b19b7

Please sign in to comment.