Skip to content

Commit 8ea4fdc

Browse files
authored
Change model to Claude v2
1 parent b9c64bf commit 8ea4fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example_code/src/main/java/aws/community/examples/InvokeBedrock.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void main(String[] args) {
2929
);
3030

3131
InvokeModelRequest request = InvokeModelRequest.builder()
32-
.modelId("anthropic.claude-v1")
32+
.modelId("anthropic.claude-v2")
3333
.body(body)
3434
.build();
3535

@@ -45,4 +45,4 @@ public static void main(String[] args) {
4545
System.out.println(completion);
4646
System.out.println();
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)