Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formatting] formatting error in tests fixed #137

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading