fix(osis): migrate hero_rpc_osis to broker-first hero_lib AI API #38
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_rpc!38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_osis_ai_broker_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
hero_rpc_osis used the old sync
AiClient::from_env()+Model::Llama3_3_70Benum API that hero_libbb69b40a(broker-first rewrite) removed. Without this fix, every consumer pulling fresh hero_lib breaks at compile time (12 errors inhero_rpc_osis), which is why the workaround[patch]blocks kept getting committed and reverted.Changes
AiClient::from_env()→AiClient::default_socket().await?Model::Llama3_3_70B/Model::from_id/Model::default_general→Model::new(...)chat_with_options(...)→prompt().model().user().temperature().execute().awaitspawn_blockingwrapper (broker client is async)MockGenerator::from_envandgenerate_tomlare now asyncseed_config_handlerqueries broker vialist_providers()/list_models()b8b01eba