ClaudeSummarizer and OpenAISummarizer subclasses #286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Anthropic dependency is currently hardcoded in the pom.xml but should go into the base-pom at some point, of course. See to-dos
Tested and currently deployed with Claude on https://bmaccallum.plasmodb.org/plasmo.bmaccallum/app/record/gene/PBANKA_1009500#category:transcriptomics at Bob's expense ($10 API costs currently paid up-front out of pocket; $0.50 currently used - please test with PBANKA genes only. It's a VEuPathDB organisation token however. Let me know if you want to join the VEuPathDB Anthropic console organisation.)
New env vars
CLAUDE_API_KEY(Anthropic is rebranding to Claude, by the way).DOLLAR_COST_PER_1M_AI_INPUT_TOKENS=3DOLLAR_COST_PER_1M_AI_OUTPUT_TOKENS=15MAX_DAILY_AI_EXPRESSION_DOLLAR_COST=33(Previous
OPENAI_-prefixed cost vars are deprecated but still functioning.)This was 90% Claude coded but with careful hand-holding all the way. It struggled massively with the message API response handling, until I showed it some example code from the github repo, then it was fine. Context7 docs via MCP didn't really help.
TO DOs
palm:/home/bmaccallum/bmaccallum.plasmodb.org/gus_home/config/PlasmoDB/model.propfor my dev site)