mod support; use crate::support::common_tests; type Result = core::result::Result>; // For tests. const MODEL: &str = "gemma-7b-it"; // region: --- Chat #[tokio::test] async fn test_chat_simple_ok() -> Result<()> { common_tests::common_test_chat_simple_ok(MODEL).await } #[tokio::test] async fn test_chat_json_ok() -> Result<()> { common_tests::common_test_chat_json_ok(MODEL, true).await } #[tokio::test] async fn test_chat_temperature_ok() -> Result<()> { common_tests::common_test_chat_temperature_ok(MODEL).await } // endregion: --- Chat // region: --- Chat Stream Tests #[tokio::test] async fn test_chat_stream_simple_ok() -> Result<()> { common_tests::common_test_chat_stream_simple_ok(MODEL).await } #[tokio::test] async fn test_chat_stream_capture_content_ok() -> Result<()> { common_tests::common_test_chat_stream_capture_content_ok(MODEL).await } #[tokio::test] async fn test_chat_stream_capture_all_ok() -> Result<()> { common_tests::common_test_chat_stream_capture_all_ok(MODEL).await } // endregion: --- Chat Stream Tests