The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor: consume model catalog and selection directly
Steven Enamakelf0ad410cd892
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs b/crates/openhuman-core/src/agent/tinyagents/turn_models.rsindex e2229d92db..d551f9bc8e 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs@@ -332,8 +332,10 @@ impl TurnModelSource {let local_kind = provider_string.as_deref().and_then(tinyinference::local::profile::kind_from_provider_string);- crate::inference::model_context::context_window_for_model_with_local_fallback(- model, local_kind,+ tinyinference::model::context_window_with_local_fallback(+ model,+ crate::inference::model_context::context_window_for_model(model),+ local_kind,)}diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.mdindex 735b584277..b82a024c09 100644--- a/crates/openhuman-core/src/inference/README.md+++ b/crates/openhuman-core/src/inference/README.md@@ -33,7 +33,6 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.| `tinyinference::model::model_id_supports_vision` | Upstream capability hint used directly for local model ids when the runtime cannot return an authoritative profile. || `tinyinference::model::effective_temperature` | Applies unsupported-model glob patterns and overrides before provider serialization. || `types.rs` | Serde DTOs: `LocalAiStatus`, `LocalAiAssetsStatus`, `LocalAiDownloadsProgress`, `LocalAiEmbeddingResult`, `LocalAiSpeechResult`, `LocalAiTtsResult`, etc. |-| `model_ids.rs` | Effective chat/vision/embedding/STT/TTS/quantization model id resolution from config. || `model_context.rs` | Known model context-window sizes (`context_window_for_model`) for pre-dispatch budgeting. || `presets.rs` | `ModelPreset`, `ModelTier`, `VisionMode`; tier recommendation + apply-to-config; MVP preset gating. || `paths.rs` | Host-owned on-disk model artifact paths. Completion and sentiment parsing live in `tinyinference`. |@@ -124,7 +123,9 @@ Widely depended on by the agent layer (`agent/harness`, `agent/harness/session`,## Notes / gotchas-- `local/mod.rs` re-exports `super::{device, model_ids, parse, paths, presets, sentiment, types}` under `local::` so files migrated from the old `local_ai/` keep compiling without rewriting `super::` paths.+- TinyInference owns effective chat, vision, embedding, STT, TTS, and+ quantization resolution; OpenHuman implements its configuration view and+ calls `tinyinference::local::models` directly.- Provider strings carry an optional `@<temp>` suffix that pins a per-workload temperature; the suffix is stripped before the model id is sent upstream.- `update_model_settings` silently drops reserved cloud-provider slugs (`openhuman`/`cloud`/`pid` built-ins the frontend echoes back); `apply_model_settings` re-injects them from stored config so they aren't lost.- `ops.rs` deliberately demotes known provider/user-config failures (unknown cloud provider, 401/429, model-not-found) to `warn!` to keep them out of Sentry; only unclassified failures escalate to `error!`.diff --git a/crates/openhuman-core/src/inference/local/core.rs b/crates/openhuman-core/src/inference/local/core.rsindex c3eed479fe..7488e2605f 100644--- a/crates/openhuman-core/src/inference/local/core.rs+++ b/crates/openhuman-core/src/inference/local/core.rs@@ -3,8 +3,8 @@ use std::sync::Arc;use crate::config::Config;-use super::model_ids::effective_chat_model_id;use super::service::LocalAiService;+use tinyinference::local::models::effective_chat_model_id;static LOCAL_AI: once_cell::sync::OnceCell<Arc<LocalAiService>> = once_cell::sync::OnceCell::new();diff --git a/crates/openhuman-core/src/inference/local/install_piper.rs b/crates/openhuman-core/src/inference/local/install_piper.rsindex 881e406228..6e0df70ea7 100644--- a/crates/openhuman-core/src/inference/local/install_piper.rs+++ b/crates/openhuman-core/src/inference/local/install_piper.rs@@ -179,7 +179,7 @@ fn decode_voice_id(voice_id: &str) -> (String, String, String, String) {/// to "installed" when on-disk artifacts pass validation.pub fn status(config: &Config) -> VoiceInstallStatus {let mut snapshot = read_status(ENGINE_PIPER);- let configured_voice = crate::inference::model_ids::effective_tts_voice_id(config);+ let configured_voice = tinyinference::local::models::effective_tts_voice_id(config);let configured_voice = configured_voice.trim_end_matches(".onnx").to_string();if matches!(snapshot.state, VoiceInstallState::Missing)&& installed_artifacts_ok(config, &configured_voice)diff --git a/crates/openhuman-core/src/inference/local/mod.rs b/crates/openhuman-core/src/inference/local/mod.rsindex 5db95eedc2..0343df28c1 100644--- a/crates/openhuman-core/src/inference/local/mod.rs+++ b/crates/openhuman-core/src/inference/local/mod.rs@@ -19,10 +19,7 @@ mod core;pub mod ops;mod schemas;-// Re-expose inference-level modules under `local::` so that files that-// were moved from `local_ai/` and used `super::model_ids` etc. continue-// to compile without rewriting every callsite.-pub use super::model_ids;+// Re-expose host integration modules used across the local runtime.pub use super::paths;pub use super::presets;pub use super::types;diff --git a/crates/openhuman-core/src/inference/local/service/assets/download.rs b/crates/openhuman-core/src/inference/local/service/assets/download.rsindex 834078ab7c..7909544d07 100644--- a/crates/openhuman-core/src/inference/local/service/assets/download.rs+++ b/crates/openhuman-core/src/inference/local/service/assets/download.rs@@ -2,9 +2,9 @@use crate::config::Config;use crate::inference::local::service::LocalAiService;-use crate::inference::model_ids;use crate::inference::presets::{self, VisionMode};use crate::inference::types::LocalAiAssetsStatus;+use tinyinference::local::models as model_ids;use tinyinference::local::provider::{provider_from_name, LocalAiProvider};impl LocalAiService {diff --git a/crates/openhuman-core/src/inference/local/service/assets/status.rs b/crates/openhuman-core/src/inference/local/service/assets/status.rsindex 3226195fcb..d6cdd11a53 100644--- a/crates/openhuman-core/src/inference/local/service/assets/status.rs+++ b/crates/openhuman-core/src/inference/local/service/assets/status.rs@@ -4,10 +4,10 @@ use tracing::{debug, trace};use crate::config::Config;use crate::inference::local::service::LocalAiService;-use crate::inference::model_ids;use crate::inference::paths::resolve_tts_voice_path;use crate::inference::presets::{self, VisionMode};use crate::inference::types::{LocalAiAssetStatus, LocalAiAssetsStatus};+use tinyinference::local::models as model_ids;use tinyinference::local::provider::{provider_from_name, LocalAiProvider};impl LocalAiService {diff --git a/crates/openhuman-core/src/inference/local/service/bootstrap.rs b/crates/openhuman-core/src/inference/local/service/bootstrap.rsindex aafc2c4b2c..d7a44e8e6a 100644--- a/crates/openhuman-core/src/inference/local/service/bootstrap.rs+++ b/crates/openhuman-core/src/inference/local/service/bootstrap.rs@@ -1,8 +1,8 @@use crate::config::Config;-use crate::inference::model_ids;use crate::inference::presets::{self, VisionMode};use crate::inference::types::LocalAiStatus;use tinyinference::device::DeviceProfile;+use tinyinference::local::models as model_ids;use tinyinference::local::provider::{provider_from_name, LocalAiProvider};use super::LocalAiService;diff --git a/crates/openhuman-core/src/inference/local/service/model_rpc.rs b/crates/openhuman-core/src/inference/local/service/model_rpc.rsindex 015ed997f2..f723b93e03 100644--- a/crates/openhuman-core/src/inference/local/service/model_rpc.rs+++ b/crates/openhuman-core/src/inference/local/service/model_rpc.rs@@ -85,7 +85,7 @@ pub(super) async fn invoke(temperature: f32,allow_empty: bool,) -> Result<ModelRpcOutcome, String> {- let model_id = crate::inference::model_ids::effective_chat_model_id(config);+ let model_id = tinyinference::local::models::effective_chat_model_id(config);// `OpenAiModel` no longer exposes `with_client`/injects an external// `reqwest::Client` — each model now builds and owns its own client// internally (`OpenAiModel::new`). This host no longer shares its app-widediff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rsindex b2ee2d4e35..0e70b6825b 100644--- a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs@@ -1,10 +1,10 @@use crate::config::Config;-use crate::inference::model_ids;use crate::inference::presets::{self, VisionMode};use tinyinference::local::lm_studio::lm_studio_base_url;use tinyinference::local::model_requirements::{evaluate_context, ContextEligibility, MIN_CONTEXT_TOKENS,};+use tinyinference::local::models as model_ids;use tinyinference::local::ollama::{ollama_base_url_from_override, OllamaModelShow, OllamaModelTag, OllamaShowRequest,OllamaShowResponse, OllamaTagsResponse,diff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin/model_pull.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin/model_pull.rsindex bf80ab0d0d..0bbb14ff42 100644--- a/crates/openhuman-core/src/inference/local/service/ollama_admin/model_pull.rs+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin/model_pull.rs@@ -1,8 +1,8 @@use futures_util::StreamExt;use crate::config::Config;-use crate::inference::model_ids;use crate::inference::presets::{self, VisionMode};+use tinyinference::local::models as model_ids;use tinyinference::local::ollama::{ollama_base_url_from_override, OllamaPullEvent, OllamaPullProgress, OllamaPullRequest,};diff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin_health_and_diagnostics_tests.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin_health_and_diagnostics_tests.rsindex 4b1221b31c..a426ae9c4f 100644--- a/crates/openhuman-core/src/inference/local/service/ollama_admin_health_and_diagnostics_tests.rs+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin_health_and_diagnostics_tests.rs@@ -364,8 +364,8 @@ async fn diagnostics_ok_when_expected_models_are_present() {let _guard = crate::inference::inference_test_guard();let config = Config::default();- let chat = crate::inference::model_ids::effective_chat_model_id(&config);- let embedding = crate::inference::model_ids::effective_embedding_model_id(&config);+ let chat = tinyinference::local::models::effective_chat_model_id(&config);+ let embedding = tinyinference::local::models::effective_embedding_model_id(&config);let chat_tag = format!("{}:latest", chat);let embed_tag = format!("{}:latest", embedding);let app = Router::new().route(@@ -419,8 +419,8 @@ async fn diagnostics_reports_broken_runner_even_when_models_are_present() {let _guard = crate::inference::inference_test_guard();let config = Config::default();- let chat = crate::inference::model_ids::effective_chat_model_id(&config);- let embedding = crate::inference::model_ids::effective_embedding_model_id(&config);+ let chat = tinyinference::local::models::effective_chat_model_id(&config);+ let embedding = tinyinference::local::models::effective_embedding_model_id(&config);let chat_tag = format!("{}:latest", chat);let embed_tag = format!("{}:latest", embedding);let app = Router::new()diff --git a/crates/openhuman-core/src/inference/local/service/public_infer.rs b/crates/openhuman-core/src/inference/local/service/public_infer.rsindex 9bca35d9de..194a9e08eb 100644--- a/crates/openhuman-core/src/inference/local/service/public_infer.rs+++ b/crates/openhuman-core/src/inference/local/service/public_infer.rs@@ -1,6 +1,6 @@use crate::config::Config;-use crate::inference::model_ids;use tinyinference::completion::sanitize_inline_completion;+use tinyinference::local::models as model_ids;use tinyinference::message::Message;use super::LocalAiService;diff --git a/crates/openhuman-core/src/inference/local/service/speech.rs b/crates/openhuman-core/src/inference/local/service/speech.rsindex b1fc6fa5ed..db5d5790d4 100644--- a/crates/openhuman-core/src/inference/local/service/speech.rs+++ b/crates/openhuman-core/src/inference/local/service/speech.rs@@ -5,10 +5,10 @@ use base64::{engine::general_purpose::STANDARD as BASE64, Engine};use log::debug;use crate::config::Config;-use crate::inference::model_ids;use crate::inference::paths::{config_root_dir, resolve_piper_binary, resolve_tts_voice_path};use crate::inference::types::{LocalAiSpeechResult, LocalAiTtsResult};use crate::voice::{create_stt_provider, effective_stt_provider};+use tinyinference::local::models as model_ids;use super::LocalAiService;diff --git a/crates/openhuman-core/src/inference/local/service/vision_embed.rs b/crates/openhuman-core/src/inference/local/service/vision_embed.rsindex c4fbaa1ddd..fbe8e25cfc 100644--- a/crates/openhuman-core/src/inference/local/service/vision_embed.rs+++ b/crates/openhuman-core/src/inference/local/service/vision_embed.rs@@ -1,12 +1,12 @@use crate::agent::multimodal;use crate::config::Config;-use crate::inference::model_ids;use crate::inference::presets::{self, VisionMode};use crate::inference::types::LocalAiEmbeddingResult;use tinyinference::embeddings::{EmbeddingModel, OllamaEmbeddingModel, DEFAULT_OLLAMA_DIMENSIONS,RECOMMENDED_OLLAMA_CONTEXT_TOKENS,};+use tinyinference::local::models as model_ids;use tinyinference::local::ollama::{ollama_base_url_from_override, redact_ollama_base_url, OllamaGenerateOptions,OllamaGenerateRequest,diff --git a/crates/openhuman-core/src/inference/mod.rs b/crates/openhuman-core/src/inference/mod.rsindex 414ad36199..0742b1562d 100644--- a/crates/openhuman-core/src/inference/mod.rs+++ b/crates/openhuman-core/src/inference/mod.rs@@ -28,7 +28,6 @@ pub mod embeddings;pub mod http;pub mod local;pub mod model_context;-pub mod model_ids;pub mod openai_oauth;pub mod ops;pub mod paths;@@ -55,6 +54,33 @@ pub use types::{LocalAiEmbeddingResult, LocalAiSpeechResult, LocalAiStatus, LocalAiTtsResult,};+impl tinyinference::local::models::LocalModelConfig for crate::config::Config {+ fn local_provider_name(&self) -> &str {+ &self.local_ai.provider+ }+ fn local_chat_model_id(&self) -> &str {+ &self.local_ai.chat_model_id+ }+ fn local_legacy_model_id(&self) -> &str {+ &self.local_ai.model_id+ }+ fn local_vision_model_id(&self) -> &str {+ &self.local_ai.vision_model_id+ }+ fn local_embedding_model_id(&self) -> &str {+ &self.local_ai.embedding_model_id+ }+ fn local_stt_model_id(&self) -> &str {+ &self.local_ai.stt_model_id+ }+ fn local_tts_voice_id(&self) -> &str {+ &self.local_ai.tts_voice_id+ }+ fn local_quantization(&self) -> &str {+ &self.local_ai.quantization+ }+}+// Test helpers (re-exported for sibling test files that use inference_test_guard)#[cfg(test)]pub(crate) fn inference_test_guard() -> std::sync::MutexGuard<'static, ()> {diff --git a/crates/openhuman-core/src/inference/model_context.rs b/crates/openhuman-core/src/inference/model_context.rsindex 565051cb40..2bdcd7eb30 100644--- a/crates/openhuman-core/src/inference/model_context.rs+++ b/crates/openhuman-core/src/inference/model_context.rs@@ -17,29 +17,6 @@ const TIER_REASONING_CONTEXT: u64 = 1_000_000;const TIER_STANDARD_CONTEXT: u64 = 128_000;const TIER_LOCAL_CONTEXT: u64 = 8_192;-/// Last-resort context window (tokens) for a **local** provider when neither the-/// static model table nor the provider profile declares one.-///-/// Local runtimes (llama.cpp / vLLM via `LocalProviderKind::LocalOpenai`, whose-/// profile default is `None`) enforce the model's *loaded* `n_ctx` and reject an-/// over-budget prompt with a hard `400` (`n_keep >= n_ctx`) — issue #3550 /-/// Sentry TAURI-RUST-6V0. Returning `None` for those would **disable**-/// pre-dispatch trimming and let the overflow through. So instead of skipping,-/// we trim against this conservative floor: a slightly-too-aggressive trim is-/// strictly better than a guaranteed 400. The value is the smallest real local-/// profile default (MLX = 4096), chosen because any local runtime can hold at-/// least this much, while keeping the floor low enough to actually bound the-/// prompt. Only applied to local providers — cloud providers with an unknown-/// model keep `None` (their windows are large; a tiny floor would needlessly-/// truncate legitimate large-context requests).-///-/// This floor is a **guess**, used for *trimming only*. It is deliberately not-/// fed into the engine's hard un-evictable-prefix abort ("reload with a larger-/// context length") — that abort consults the provider's *authoritative*-/// [`crate::inference::provider::Provider::loaded_context_window`]-/// instead, so we never reject a request against a guessed window the real-/// loaded `n_ctx` would have accepted (Codex P1 review on PR #3771).-const CONSERVATIVE_LOCAL_CONTEXT_FLOOR: u64 = 4_096;/// DeepSeek v4 Flash window (~1M tokens) — the shared backing for every managed/// "flash" tier: `chat-v1`, its legacy alias `reasoning-quick-v1`, and/// `summarization-v1`. Kept as a single constant so these tiers can't drift@@ -106,55 +83,6 @@ fn tier_context_window(model: &str) -> Option<u64> {}}-/// Resolve context window with local provider profile fallback.-///-/// When `context_window_for_model` returns `None` (unknown model name —-/// common for local models like `qwen3:14b`, `phi3:mini`, etc.) this-/// function falls back to the provider profile's declared default context-/// window. This ensures preflight trimming still works for local models-/// even when the exact model name isn't in the static pattern table.-///-/// For a **local** provider this never returns `None`: if the profile itself-/// declares no default (e.g. `LocalProviderKind::LocalOpenai` = llama.cpp /-/// vLLM), it falls back once more to [`CONSERVATIVE_LOCAL_CONTEXT_FLOOR`] so-/// trimming still engages instead of being silently skipped and overflowing-/// the runtime `n_ctx` (issue #3550 / Sentry TAURI-RUST-6V0). `None` is only-/// returned when `local_kind` is `None` (cloud provider, unknown model) —-/// where over-trimming a large window is worse than skipping the trim.-pub fn context_window_for_model_with_local_fallback(- model: &str,- local_kind: Option<tinyinference::local::profile::LocalProviderKind>,-) -> Option<u64> {- if let Some(window) = context_window_for_model(model) {- return Some(window);- }- // Fall back to the local provider profile's default context window.- if let Some(kind) = local_kind {- let profile = tinyinference::local::profile::profile_for_kind(kind);- if let Some(default_ctx) = profile.default_context_window {- tracing::debug!(- model,- provider = kind.as_str(),- context_window = default_ctx,- "[model_context] using local provider profile default context window"- );- return Some(default_ctx);- }- // Local provider with no declared default (llama.cpp / vLLM). Never- // return `None` here — that would disable pre-dispatch trimming and let- // the prompt overflow the runtime `n_ctx` (the TAURI-RUST-6V0 400). Trim- // against a conservative floor instead.- tracing::debug!(- model,- provider = kind.as_str(),- context_window = CONSERVATIVE_LOCAL_CONTEXT_FLOOR,- "[model_context] local provider has no profile default; using conservative context floor"- );- return Some(CONSERVATIVE_LOCAL_CONTEXT_FLOOR);- }- None-}-/// Whether the model resolved for a chat hint/agent/profile accepts image input/// according to the **user-configured** vision flag in `config.model_registry`.///diff --git a/crates/openhuman-core/src/inference/model_context_tests.rs b/crates/openhuman-core/src/inference/model_context_tests.rsindex 20d8f3100d..aa4df6bcb9 100644--- a/crates/openhuman-core/src/inference/model_context_tests.rs+++ b/crates/openhuman-core/src/inference/model_context_tests.rs@@ -1,44 +1,4 @@use super::*;-use tinyinference::local::profile::LocalProviderKind;--#[test]-fn local_fallback_uses_profile_default() {- // Unknown model with Ollama profile → 8192 default- assert_eq!(- context_window_for_model_with_local_fallback("qwen3:14b", Some(LocalProviderKind::Ollama)),- Some(8_192)- );- // Unknown model with MLX profile → 4096 default- assert_eq!(- context_window_for_model_with_local_fallback(- "my-custom-model",- Some(LocalProviderKind::Mlx)- ),- Some(4_096)- );- // Unknown model with no local provider → None- assert_eq!(- context_window_for_model_with_local_fallback("qwen3:14b", None),- None- );- // Local provider whose profile declares no default (llama.cpp / vLLM via- // LocalOpenai) → conservative floor, NOT None. None here would disable- // pre-dispatch trimming and let the prompt overflow the runtime n_ctx- // (the TAURI-RUST-6V0 400). Must stay bounded.- assert_eq!(- context_window_for_model_with_local_fallback(- "some-unlisted-gguf",- Some(LocalProviderKind::LocalOpenai)- ),- Some(super::CONSERVATIVE_LOCAL_CONTEXT_FLOOR)- );- // Known model ignores local fallback- assert_eq!(- context_window_for_model_with_local_fallback("llama3:8b", Some(LocalProviderKind::Ollama)),- Some(128_000)- );-}-#[test]fn tier_aliases_resolve() {assert_eq!(context_window_for_model("reasoning-v1"), Some(1_000_000));diff --git a/crates/openhuman-core/src/inference/paths.rs b/crates/openhuman-core/src/inference/paths.rsindex 4f51decb57..bf05c37ea1 100644--- a/crates/openhuman-core/src/inference/paths.rs+++ b/crates/openhuman-core/src/inference/paths.rs@@ -4,7 +4,7 @@ use std::path::PathBuf;use crate::config::Config;-use super::model_ids;+use tinyinference::local::models as model_ids;/// Returns the per-user config directory (parent of config.toml).pub(crate) fn config_root_dir(config: &Config) -> PathBuf {diff --git a/crates/openhuman-core/src/inference/provider/ops/mod.rs b/crates/openhuman-core/src/inference/provider/ops/mod.rsindex 6136125e3b..3bd553f08d 100644--- a/crates/openhuman-core/src/inference/provider/ops/mod.rs+++ b/crates/openhuman-core/src/inference/provider/ops/mod.rs@@ -34,8 +34,7 @@ pub use http_error::{pub use models::{append_query_param, is_openrouter_provider, list_configured_models,- list_configured_models_from_config, merge_openai_codex_model_hints, model_items_from_body,- parse_models_response, synthesize_local_runtime_entry, ModelInfo,+ list_configured_models_from_config, synthesize_local_runtime_entry,};pub use provider_factory::{diff --git a/crates/openhuman-core/src/inference/provider/ops/models.rs b/crates/openhuman-core/src/inference/provider/ops/models.rsindex 8962185d48..e614918180 100644--- a/crates/openhuman-core/src/inference/provider/ops/models.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models.rs@@ -16,8 +16,7 @@use super::super::openai_codex::resolve_openai_codex_routing;use tinyinference::providers::openai::codex::{openai_codex_client_version, openai_codex_user_agent, OpenAiCodexRouting,- OPENAI_CODEX_ACCOUNT_HEADER, OPENAI_CODEX_MODEL_HINTS, OPENAI_CODEX_ORIGINATOR,- OPENAI_CODEX_ORIGINATOR_HEADER,+ OPENAI_CODEX_ACCOUNT_HEADER, OPENAI_CODEX_ORIGINATOR, OPENAI_CODEX_ORIGINATOR_HEADER,};use tinyinference::sanitize::sanitize_api_error;@@ -25,10 +24,7 @@ mod catalog_listing;mod local_runtime;mod managed_provider;mod openrouter;-mod parsing;-mod types;--pub use types::ModelInfo;+use tinyinference::catalog::{merge_openai_codex_model_hints, parse_models_response, ModelInfo};#[cfg(test)]use catalog_listing::resolve_local_runtime_key;@@ -38,7 +34,6 @@ pub use catalog_listing::{};pub use local_runtime::synthesize_local_runtime_entry;pub use openrouter::is_openrouter_provider;-pub use parsing::{merge_openai_codex_model_hints, model_items_from_body, parse_models_response};// Cross-submodule wiring: each submodule reaches these through `use super::*;`// (mirrors the pre-split `include!`-shared scope).diff --git a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rsindex e84f131078..473c902a3a 100644--- a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs+++ b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyinference::catalog::{merge_openai_codex_model_hints, parse_models_response, ModelInfo};#[tokio::test]async fn list_models_empty_body_returns_diagnostic_error() {diff --git a/crates/openhuman-core/src/inference/types.rs b/crates/openhuman-core/src/inference/types.rsindex e469460609..17749f641b 100644--- a/crates/openhuman-core/src/inference/types.rs+++ b/crates/openhuman-core/src/inference/types.rs@@ -3,8 +3,8 @@use crate::config::Config;use serde::{Deserialize, Serialize};-use super::model_ids;use super::presets;+use tinyinference::local::models as model_ids;use tinyinference::local::provider::provider_from_name;#[derive(Debug, Clone, Serialize, Deserialize)]diff --git a/crates/openhuman-core/src/voice/ops.rs b/crates/openhuman-core/src/voice/ops.rsindex d9327c699d..beebfd545c 100644--- a/crates/openhuman-core/src/voice/ops.rs+++ b/crates/openhuman-core/src/voice/ops.rs@@ -9,9 +9,9 @@ use std::time::Instant;use crate::config::Config;use crate::inference::local as local_ai;-use crate::inference::local::model_ids;use crate::inference::local::paths::{resolve_piper_binary, resolve_tts_voice_path};use crate::rpc::RpcOutcome;+use tinyinference::local::models as model_ids;use super::factory::{create_stt_provider, effective_stt_provider};use super::postprocess;diff --git a/vendor/tinyagents b/vendor/tinyagentsindex 95fb346dcd..0017dfb155 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 95fb346dcdade90b4b88d050f7761b2db2a23b7e+Subproject commit 0017dfb15547d6dd56fdabf41e966fce41c4f99b