refactor(server): migrate herolib_ai → hero_aibroker_sdk #125
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_books!125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_aibroker_sdk_migration"
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?
Summary
First consumer migration for hero_aibroker#63. Drops
herolib_aifromhero_books_serverin favour ofhero_aibroker_sdk. Nothing in the workspace depends onherolib_aianymore.Call sites (4)
web/mcp.rs::handle_ask_librarian— Ask the Librarian summaryweb/axum_server.rs::handler_api_ai_summary_get—GET /api/ai-summaryweb/axum_server.rs::handler_api_ai_summary—POST /api/ai-summaryweb/axum_server.rs::handler_api_transcribe— STT + cleanup chatShape
Connect via
AIBrokerAdminAPIClient::connect_default(), then callclient.ai_chat()/client.ai_transcribe()through a smallbroker_chat()helper. Once hero_aibroker#70 (PromptBuilder + models constants) merges, the helper can be replaced byclient.prompt(MODEL).user(p).execute_content().await— that's a one-line follow-up.Model mapping
Model::new("groq-strong")"llama-3.3-70b"Model::new("groq/whisper-large-v3-turbo")"whisper"Other changes
hero_books_server/Cargo.toml:herolib_ai→hero_aibroker_sdkhero_books_libstale comments updatedaudio_base64)Test plan
cargo build --workspace— clean/api/ai-summary+ voice transcribe🤖 Generated with Claude Code
herolib_aiintohero_aibroker_sdk(single AI client) #63