Deserialization and error handling improvements

This commit is contained in:
2024-02-07 07:43:11 +00:00
parent 450fe84d8b
commit 8c42901ddf
5 changed files with 73 additions and 20 deletions

View File

@@ -14,6 +14,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let project_id = std::env::var("PROJECT_ID")?;
let location_id = std::env::var("LOCATION_ID")?;
tracing_subscriber::fmt().init();
let vertex_client = VertexClient::new(
authentication_manager,
api_endpoint,
@@ -21,6 +23,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
location_id,
);
tracing::info!("Starting conversation...");
let mut conversation = Conversation::new();
loop {
let message: String = Input::with_theme(&ColorfulTheme::default())