Repository navigation
clairic 0.2.0: works with the November 2026 Clairic API #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c05af7a
f91815e
8560238
6e87366
6c00ec0
d3f72fa
00e0bf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,9 +63,9 @@ def main() -> None: | |
| print(f"Invoice number: {number.value} (confidence {number.confidence:.4f})") | ||
| print(f"Due date: {data.due_date.value}") | ||
| print(f"Total: {data.total.value} USD") | ||
| print(f"PO number: {po.value} (p_null {po.p_null:.4f}, best guess {po.guess!r})") | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why removing guess ?
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since Cloudflare's November update, Clairic no longer returns a
In 0.2, 🤖 Claude Code |
||
| print(f"PO number: {po.value} (p_null {po.p_null:.4f})") | ||
| print(f"Days to pay: {estimate.value} (80% interval {estimate.p10} to {estimate.p90})") | ||
| print(f"Input tokens: {result.usage.input_tokens} over {result.usage.passes} passes") | ||
| print(f"Input tokens: {result.usage.input_tokens} over {result.usage.passes} decode steps") | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. passes = decode steps ?
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's how the new output schema defines it: At launch, The SDK keeps the API's field name, If you prefer, the example could print 🤖 Claude Code |
||
| print() | ||
| print(result.values_as(Invoice)) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping support for 3.10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, deliberately. It comes with the httpx2 switch (S5, #17): httpx2 declares
requires-python >=3.11(2.18.0 on PyPI), so it can't be installed on 3.10. Python 3.10 also reached end of life in October 2026, and python-jev already targets 3.11–3.14.Keeping 3.10 would mean staying on httpx 0.28.1, which has had no stable release since December 2024, or supporting both clients side by side. Neither seemed worth it before the 1.0 API freeze.
The PR description lists this under breaking changes, and the 0.2.0 release notes will say it too. CI now runs 3.11–3.14, plus a job on 3.11 with the lowest allowed dependency versions.
🤖 Claude Code