feat(onboard): refresh model discovery and canonicalize provider aliases (#341)

* feat(onboard): add model refresh command with ttl cache

* fix(onboard): refresh curated models and canonicalize provider aliases

* fix(channels): align agent_turn call signature

* fix(channels): call run_tool_call_loop for stable channel runtime
This commit is contained in:
Chummy 2026-02-16 22:32:30 +08:00 committed by GitHub
parent 0995c57776
commit c842ece12c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1150 additions and 148 deletions

View file

@ -20,7 +20,7 @@ pub use telegram::TelegramChannel;
pub use traits::Channel;
pub use whatsapp::WhatsAppChannel;
use crate::agent::loop_::{agent_turn, build_tool_instructions};
use crate::agent::loop_::{build_tool_instructions, run_tool_call_loop};
use crate::config::Config;
use crate::identity;
use crate::memory::{self, Memory};
@ -181,7 +181,7 @@ async fn process_channel_message(ctx: Arc<ChannelRuntimeContext>, msg: traits::C
let llm_result = tokio::time::timeout(
Duration::from_secs(CHANNEL_MESSAGE_TIMEOUT_SECS),
agent_turn(
run_tool_call_loop(
ctx.provider.as_ref(),
&mut history,
ctx.tools_registry.as_ref(),