Skip to content

Commit

Permalink
[formatting] formatting error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoo committed Apr 3, 2024
1 parent f1e6f21 commit 61046e1
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions crates/edgen_server/tests/settings_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ fn test_battery() {
test_ai_endpoint_with_download(Endpoint::AudioTranscriptions, "default");
test_ai_endpoint_with_download(Endpoint::Embeddings, "default");


// we have downloaded, we should not download again
test_ai_endpoint_no_download(Endpoint::ChatCompletions, "default");
test_ai_endpoint_no_download(Endpoint::AudioTranscriptions, "default");
Expand Down Expand Up @@ -131,12 +130,8 @@ fn test_battery() {
"transcriptions",
);

let new_embeddings_dir = my_models_dir.clone()
+ &format!(
"{}{}",
path::MAIN_SEPARATOR,
"embeddings",
);
let new_embeddings_dir =
my_models_dir.clone() + &format!("{}{}", path::MAIN_SEPARATOR, "embeddings",);

common::set_model_dir(Endpoint::ChatCompletions, &new_chat_completions_dir);
common::set_model_dir(Endpoint::AudioTranscriptions, &new_audio_transcriptions_dir);
Expand Down Expand Up @@ -344,16 +339,9 @@ fn test_ai_endpoint(endpoint: Endpoint, model: &str, download: bool) {
)
}
Endpoint::Embeddings => {
common::test_message(&format!(
"embeddints endpoint with download: {}",
download
));
common::test_message(&format!("embeddints endpoint with download: {}", download));
(
common::make_url(&[
common::BASE_URL,
common::EMBEDDINGS_URL,
common::STATUS_URL,
]),
common::make_url(&[common::BASE_URL, common::EMBEDDINGS_URL, common::STATUS_URL]),
common::embeddings_custom_body(model),
)
}
Expand Down

0 comments on commit 61046e1

Please sign in to comment.