feat(ai,ingestion-ocr): choose the model adapter per call and report its token usage #62
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/61-ai-usage-per-call"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #61
@quatrain/ai: exportsAiUsageInterfaceandAiUsageCallbackType.@quatrain/ai-gemini:generateTextreports usage throughonUsage, likegenerateStructured.@quatrain/ingestion-ocr:processacceptsai(adapter to use, the process-wide one by default) and forwardsonUsage. Its build no longer compiles the tests.Backward compatible: without the new options nothing changes.
Tests: 7 passing on the three packages (4 new).
🤖 Generated with Claude Code