Skip to content

Commit

Permalink
Add missing exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed May 23, 2024
1 parent ddc6213 commit 88072e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.net.MalformedURLException;

@RestController
class ChatController {
Expand All @@ -21,7 +22,7 @@ String chatFromImageFile(@RequestParam(defaultValue = "What do you see in this p
}

@GetMapping("/chat/image/url")
String chatFromImageUrl(@RequestParam(defaultValue = "What do you see in this picture? Give a short answer") String message) {
String chatFromImageUrl(@RequestParam(defaultValue = "What do you see in this picture? Give a short answer") String message) throws MalformedURLException {
return chatService.chatFromImageUrl(message);
}

Expand Down

0 comments on commit 88072e2

Please sign in to comment.