Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void chatCompletion() {
void chatCompletionImage() {
final var completion =
service.chatCompletionImage(
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/SAP_2011_logo.svg/440px-SAP_2011_logo.svg.png");
"https://content.cdn.sap.com/is/image/sap/sap-locations-walldorf-photo-anvilwindow:XL");

final var message = completion.getChoices().get(0).getMessage();
assertThat(message.getRole()).isEqualTo("assistant");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void testMessagesHistory() {
void chatCompletionImage() {
final var completion =
service.chatCompletionImage(
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/SAP_2011_logo.svg/440px-SAP_2011_logo.svg.png");
"https://content.cdn.sap.com/is/image/sap/sap-locations-walldorf-photo-anvilwindow:XL");

assertThat(completion.getContent()).isNotEmpty();
assertThat(completion.getChoice().getMessage().getRole()).isEqualTo(ASSISTANT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void testImageInput() {
val result =
service
.imageInput(
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/SAP_2011_logo.svg/440px-SAP_2011_logo.svg.png")
"https://content.cdn.sap.com/is/image/sap/sap-locations-walldorf-photo-anvilwindow:XL")
.getOriginalResponse();
val choices = (result.getFinalResult()).getChoices();
assertThat(choices.get(0).getMessage().getContent()).isNotEmpty();
Expand Down