File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
openai-java-example/src/main/java/com/openai/example Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ public static void main(String[] args) {
1919 .create (BetaAssistantCreateParams .builder ()
2020 .name ("Math Tutor" )
2121 .instructions ("You are a personal math tutor. Write and run code to answer math questions." )
22+ // TODO: Update this example once we support `addCodeInterpreterTool()` or similar.
2223 .addTool (CodeInterpreterTool .builder ().build ())
2324 .model (ChatModel .GPT_4O_MINI )
2425 .build ());
2526 CompletableFuture <String > threadIdFuture = client .beta ()
2627 .threads ()
28+ // TODO: Update this example once we support `.create()` without arguments.
2729 .create (BetaThreadCreateParams .builder ().build ())
2830 .thenComposeAsync (thread -> client .beta ()
2931 .threads ()
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ public static void main(String[] args) throws InterruptedException {
1919 .create (BetaAssistantCreateParams .builder ()
2020 .name ("Math Tutor" )
2121 .instructions ("You are a personal math tutor. Write and run code to answer math questions." )
22+ // TODO: Update this example once we support `addCodeInterpreterTool()` or similar.
2223 .addTool (CodeInterpreterTool .builder ().build ())
2324 .model (ChatModel .GPT_4O_MINI )
2425 .build ());
2526 Thread thread =
27+ // TODO: Update this example once we support `.create()` without arguments.
2628 client .beta ().threads ().create (BetaThreadCreateParams .builder ().build ());
2729 client .beta ()
2830 .threads ()
You can’t perform that action at this time.
0 commit comments