update fmt

This commit is contained in:
jhqxxx
2026-03-23 22:09:20 +08:00
parent 9224593b78
commit 7d3cd50e35
9 changed files with 58 additions and 41 deletions
+6 -4
View File
@@ -1,7 +1,10 @@
use std::{pin::pin, time::Instant};
use aha::{
chat::ChatCompletionParameters,
models::{GenerateModel, lfm2::generate::Lfm2GenerateModel},
};
use anyhow::Result;
use aha::{chat::ChatCompletionParameters, models::{GenerateModel, lfm2::generate::Lfm2GenerateModel}};
use rocket::futures::StreamExt;
use std::{pin::pin, time::Instant};
#[test]
fn lfm2_generate() -> Result<()> {
@@ -44,7 +47,6 @@ fn lfm2_generate() -> Result<()> {
Ok(())
}
#[tokio::test]
async fn lfm2_stream() -> Result<()> {
// test with cuda: RUST_BACKTRACE=1 cargo test -F cuda --test test_lfm2 lfm2_stream -r -- --nocapture
@@ -88,4 +90,4 @@ async fn lfm2_stream() -> Result<()> {
println!("Time elapsed in generate is: {:?}", i_duration);
Ok(())
}
}