9 Commits

Author SHA1 Message Date
Simon Willison
fd898ff2b5 Use response.set_usage(), closes #29
Refs https://github.com/simonw/llm/issues/610
2024-11-19 20:29:25 -08:00
Simon Willison
8dc778592f Async models
* Tip about pytest --record-mode once

Plus mechanism for setting API key during tests with PYTEST_ANTHROPIC_API_KEY

* Async support for Claude models

Closes #25
Refs https://github.com/simonw/llm/issues/507
Refs https://github.com/simonw/llm/pull/613

* Depend on llm>=0.18a0, refs #25
2024-11-13 19:36:11 -08:00
Simon Willison
ec3aa1295d PDF attachment support for Claude 3.5 Sonnet, refs #22 2024-11-01 11:46:38 -07:00
Simon Willison
97f2aeeec6 Image attachment support
Refs #19

Refs https://github.com/simonw/llm/issues/587
2024-10-28 18:29:16 -07:00
Simon Willison
8dbe06a699 Add claude-3-5-sonnet-20240620, refs #7
Also fix broken test
2024-06-20 11:26:11 -07:00
Simon Willison
e658385d95 Applied Black 2024-03-13 14:05:20 -07:00
jvmncs
3a2c3fcc0d feat: add sampling options (#2)
* make test more reproducible

* add sampling options ClaudeMessages.Options
2024-03-07 16:08:31 -05:00
Simon Willison
9171686314 Added first test, using pytest-recording - refs #1 2024-03-04 07:38:39 -08:00
Simon Willison
f75f18e5f2 Initial working prototype, refs #1 2024-03-04 07:26:18 -08:00