From 9f9e41961eb82f42294b37fc53fe8f83d5bb9253 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 19 Dec 2024 05:40:51 +0000 Subject: [PATCH] chore(docs): add example project --- openai-java-example/build.gradle.kts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 openai-java-example/build.gradle.kts diff --git a/openai-java-example/build.gradle.kts b/openai-java-example/build.gradle.kts new file mode 100644 index 000000000..5c20cba00 --- /dev/null +++ b/openai-java-example/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + id("openai.kotlin") + id("java") + application +} + +dependencies { + implementation(project(":openai-java")) +} + +tasks.withType().configureEach { + // Allow using more modern APIs, like `List.of` and `Map.of`, in examples. + options.release.set(9) +} + +application { + mainClass = "com.openai.example.Main" +}