Skip to content

Commit 24de906

Browse files
TomerAberbachstainless-app[bot]
authored andcommitted
docs: remove unnecessary checked exception signatures
1 parent 543a08b commit 24de906

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

openai-java-example/src/main/java/com/openai/example/AssistantExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public final class AssistantExample {
99
private AssistantExample() {}
1010

11-
public static void main(String[] args) throws InterruptedException {
11+
public static void main(String[] args) throws Exception {
1212
// Configures using one of:
1313
// - The `OPENAI_API_KEY` environment variable
1414
// - The `AZURE_OPENAI_ENDPOINT` and `AZURE_OPENAI_KEY` environment variables

openai-java-example/src/main/java/com/openai/example/CompletionsStreamingAsyncExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public final class CompletionsStreamingAsyncExample {
1111
private CompletionsStreamingAsyncExample() {}
1212

13-
public static void main(String[] args) throws Exception {
13+
public static void main(String[] args) {
1414
// Configures using one of:
1515
// - The `OPENAI_API_KEY` environment variable
1616
// - The `AZURE_OPENAI_ENDPOINT` and `AZURE_OPENAI_KEY` environment variables

openai-java-example/src/main/java/com/openai/example/CompletionsStreamingExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public final class CompletionsStreamingExample {
99
private CompletionsStreamingExample() {}
1010

11-
public static void main(String[] args) throws Exception {
11+
public static void main(String[] args) {
1212
// Configures using one of:
1313
// - The `OPENAI_API_KEY` environment variable
1414
// - The `AZURE_OPENAI_ENDPOINT` and `AZURE_OPENAI_KEY` environment variables

0 commit comments

Comments
 (0)