mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(bedrock): list VIDEO as an input modality of Nova Lite (#8537)
This commit is contained in:
1 parent
b1dab43276
commit
e305ced3bd
2 files changed
+14
-1
No files matched your search
@@ -59,6 +59,19 @@ class BedrockModelCatalogIntegrationTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void novaLiteAdvertisesVideoInputOnGetAndList() {
|
||||
List<String> expected = List.of("TEXT", "IMAGE", "VIDEO");
|
||||
try (BedrockClient client = client("us-east-1")) {
|
||||
assertEquals(expected, client.getFoundationModel(request -> request.modelIdentifier(NOVA_LITE))
|
||||
.modelDetails().inputModalitiesAsStrings());
|
||||
FoundationModelSummary summary = client.listFoundationModels(request -> request.byProvider("Amazon"))
|
||||
.modelSummaries().stream().filter(model -> NOVA_LITE.equals(model.modelId())).findFirst()
|
||||
.orElseThrow();
|
||||
assertEquals(expected, summary.inputModalitiesAsStrings());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void listFoundationModelsOnlyListsModelsServedInTheRegion() {
|
||||
try (BedrockClient us = client("us-east-1"); BedrockClient eu = client("eu-west-1")) {
|
||||
|
||||
Reference in new issue
Block a user