refactor(core): remove provider module, migrate to LLMProvider, add client mode handling, improve serialization error handling, update workspace edition, and clean up conditionals and imports

This commit is contained in:
2025-10-12 12:38:55 +02:00
parent c2f5ccea3b
commit 7851af14a9
63 changed files with 2221 additions and 1236 deletions

View File

@@ -8,9 +8,9 @@
//! - Ensure Ollama is running with a model available
use owlen_core::{
Provider,
mcp::remote_client::RemoteMcpClient,
types::{ChatParameters, ChatRequest, Message, Role},
Provider,
};
use std::sync::Arc;
@@ -57,7 +57,7 @@ async fn main() -> Result<(), anyhow::Error> {
// Send request and get response
println!("\nAssistant: ");
let response = client.chat(request).await?;
let response = client.send_prompt(request).await?;
println!("{}", response.message.content);
if let Some(usage) = response.usage {