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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user