openai/openai-java

Public

mirrored from https://github.com/openai/openai-javaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.21.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

openai-java-example/build.gradle.kts

19lines · modecode

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