hero_agent_server uses removed herolib_ai APIs (TranscriptionModel, AiClient::from_env) #24

Closed
opened 2026-05-12 15:26:39 +00:00 by zaelgohary · 1 comment
Member

cargo build fails:

error[E0432]: unresolved import `herolib_ai::TranscriptionModel`
  --> crates/hero_agent_server/src/routes.rs:1266:36

error[E0599]: no function or associated item named `from_env` found for struct `AiClient`
  --> crates/hero_agent_server/src/routes.rs:1322:32

Neither TranscriptionModel nor AiClient::from_env() exists in current herolib_ai.

Fix: migrate the two call sites in crates/hero_agent_server/src/routes.rs to the current API.

`cargo build` fails: ``` error[E0432]: unresolved import `herolib_ai::TranscriptionModel` --> crates/hero_agent_server/src/routes.rs:1266:36 error[E0599]: no function or associated item named `from_env` found for struct `AiClient` --> crates/hero_agent_server/src/routes.rs:1322:32 ``` Neither `TranscriptionModel` nor `AiClient::from_env()` exists in current `herolib_ai`. Fix: migrate the two call sites in `crates/hero_agent_server/src/routes.rs` to the current API.
Author
Member

Fixed in 7309482 — migrated routes.rs:1266/1322 off removed TranscriptionModel and AiClient::from_env. Now uses AiClient::default_socket().await + "whisper-large-v3-turbo" model string. Async call bridged into the existing spawn_blocking via Handle::current().block_on().

Fixed in 7309482 — migrated routes.rs:1266/1322 off removed `TranscriptionModel` and `AiClient::from_env`. Now uses `AiClient::default_socket().await` + `"whisper-large-v3-turbo"` model string. Async call bridged into the existing spawn_blocking via Handle::current().block_on().
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_agent#24
No description provided.