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(inference): export codex routing function
Steven Enamakel995db0b6a17d
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 36d97c78d2..d8bff60c69 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -30,7 +30,7 @@ pub use chat_model::{create_chat_model_from_string, create_chat_model_from_string_with_model_id,create_chat_model_in, create_chat_model_with_model_id_in, probe_inference_readiness,};-pub(crate) use credentials::openai_bearer_is_oauth;+pub(crate) use credentials::{openai_bearer_is_oauth, resolve_codex_routing};pub use credentials::{auth_key_for_slug, lookup_key_for_slug};pub(crate) use discovery::{model_limits_request, model_limits_request_for};pub(crate) use local_runtime::create_local_chat_model_from_string;diff --git a/crates/openhuman-core/src/inference/provider/factory/credentials.rs b/crates/openhuman-core/src/inference/provider/factory/credentials.rsindex 91292917ba..b866712ec4 100644--- a/crates/openhuman-core/src/inference/provider/factory/credentials.rs+++ b/crates/openhuman-core/src/inference/provider/factory/credentials.rs@@ -63,7 +63,10 @@ pub(crate) fn resolve_codex_routing(endpoint: &str,bearer_key: &str,bearer_is_oauth: bool,-) -> Result<tinyinference_llm::providers::openai::codex::OpenAiCodexRouting, String> {+) -> std::result::Result<+ tinyinference_llm::providers::openai::codex::OpenAiCodexRouting,+ String,+> {let credentials = if slug == "openai" {match crate::security::credentials::openai_oauth::lookup_openai_oauth_credentials(config) {Ok(credentials) => credentials,