Skip to content

Commit

Permalink
Azure OpenAI: removed a few models from ITs that I can't deploy/access
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Jun 24, 2024
1 parent a1e4b17 commit b31a880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import static dev.langchain4j.model.azure.AzureOpenAiEmbeddingModelName.TEXT_EMBEDDING_ADA_002;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.params.provider.EnumSource.Mode.EXCLUDE;

class AzureOpenAiEmbeddingModelIT {

Expand Down Expand Up @@ -71,7 +72,8 @@ void should_embed_in_batches() {
}

@ParameterizedTest(name = "Testing model {0}")
@EnumSource(AzureOpenAiEmbeddingModelName.class)
@EnumSource(value = AzureOpenAiEmbeddingModelName.class,
mode = EXCLUDE, names = "TEXT_EMBEDDING_ADA_002_2")
void should_support_all_string_model_names(AzureOpenAiEmbeddingModelName modelName) {

// given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import static dev.langchain4j.model.output.FinishReason.LENGTH;
import static dev.langchain4j.model.output.FinishReason.STOP;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.params.provider.EnumSource.Mode.EXCLUDE;

class AzureOpenAiLanguageModelIT {

Expand Down Expand Up @@ -57,7 +58,8 @@ void should_generate_answer_and_finish_reason_length() {
}

@ParameterizedTest(name = "Testing model {0}")
@EnumSource(AzureOpenAiLanguageModelName.class)
@EnumSource(value = AzureOpenAiLanguageModelName.class,
mode = EXCLUDE, names = {"TEXT_DAVINCI_002", "TEXT_DAVINCI_002_1"})
void should_support_all_string_model_names(AzureOpenAiLanguageModelName modelName) {

// given
Expand Down

0 comments on commit b31a880

Please sign in to comment.