openai/openai-java
Publicmirrored from https://github.com/openai/openai-javaAvailable
openai-java-example/build.gradle.kts
19lines · modecode
| 1 | plugins { |
| 2 | id("openai.kotlin") |
| 3 | id("java") |
| 4 | application |
| 5 | } |
| 6 | |
| 7 | dependencies { |
| 8 | implementation(project(":openai-java")) |
| 9 | api("com.azure:azure-identity:1.15.0") |
| 10 | } |
| 11 | |
| 12 | tasks.withType<JavaCompile>().configureEach { |
| 13 | // Allow using more modern APIs, like `List.of` and `Map.of`, in examples. |
| 14 | options.release.set(11) |
| 15 | } |
| 16 | |
| 17 | application { |
| 18 | mainClass = "com.openai.example.CompletionsExample" |
| 19 | } |
| 20 | |