This repository was archived by the owner on Jun 6, 2024. It is now read-only.
File tree 6 files changed +11
-44
lines changed
example/src/main/java/example
service/src/test/java/com/theokanning/openai/service
6 files changed +11
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,25 +12,19 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
15
- - name : Set up JDK 17
15
+ - name : Set up JDK 1.8
16
16
uses : actions/setup-java@v3
17
17
with :
18
18
distribution : temurin
19
- java-version : 17
19
+ java-version : 8
20
20
21
21
- name : Test
22
22
run : ./gradlew test
23
23
env :
24
24
OPENAI_TOKEN : ${{ secrets.OPENAI_TOKEN }}
25
25
26
- - name : Set up JDK 1.8
27
- uses : actions/setup-java@v3
28
- with :
29
- distribution : temurin
30
- java-version : 8
31
-
32
26
- name : Publish
33
- run : ./gradlew build -x :example:build publish --no-parallel
27
+ run : ./gradlew build publish --no-parallel
34
28
env :
35
29
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
36
30
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Original file line number Diff line number Diff line change 17
17
distribution : temurin
18
18
java-version : 8
19
19
20
- - name : Compile Artifacts
21
- run : ./gradlew api:compileJava client:compileJava service:compileJava
22
-
23
- - name : Set up JDK 17
24
- uses : actions/setup-java@v3
25
- with :
26
- distribution : temurin
27
- java-version : 17
28
-
29
- - name : Compile Tests
30
- run : ./gradlew compileTestJava
20
+ - name : Compile
21
+ run : ./gradlew compileJava compileTestJava
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@v3
13
13
14
- - name : Set up JDK 17
14
+ - name : Set up JDK 1.8
15
15
uses : actions/setup-java@v3
16
16
with :
17
17
distribution : temurin
18
- java-version : 17
18
+ java-version : 8
19
19
20
20
- name : Test
21
21
run : ./gradlew test --stacktrace
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public static void main(String... args) {
36
36
.name ("unit" )
37
37
.type ("string" )
38
38
.description ("The temperature unit, can be 'celsius' or 'fahrenheit'" )
39
- .enumValues (Set . of ("celsius" , "fahrenheit" ))
39
+ .enumValues (new HashSet <>( Arrays . asList ("celsius" , "fahrenheit" ) ))
40
40
.required (true )
41
41
.build ())
42
42
.build ();
Original file line number Diff line number Diff line change 7
7
import com .theokanning .openai .completion .chat .*;
8
8
import org .junit .jupiter .api .Test ;
9
9
10
- import java .util .ArrayList ;
11
- import java .util .HashMap ;
12
- import java .util .List ;
13
- import java .util .Set ;
14
- import java .util .Collections ;
10
+ import java .util .*;
15
11
16
12
import static org .junit .jupiter .api .Assertions .*;
17
13
@@ -164,7 +160,7 @@ void createChatCompletionWithDynamicFunctions() {
164
160
.name ("unit" )
165
161
.type ("string" )
166
162
.description ("The temperature unit, can be 'celsius' or 'fahrenheit'" )
167
- .enumValues (Set . of ("celsius" , "fahrenheit" ))
163
+ .enumValues (new HashSet <>( Arrays . asList ("celsius" , "fahrenheit" ) ))
168
164
.required (true )
169
165
.build ())
170
166
.build ();
@@ -273,7 +269,7 @@ void streamChatCompletionWithDynamicFunctions() {
273
269
.name ("unit" )
274
270
.type ("string" )
275
271
.description ("The temperature unit, can be 'celsius' or 'fahrenheit'" )
276
- .enumValues (Set . of ("celsius" , "fahrenheit" ))
272
+ .enumValues (new HashSet <>( Arrays . asList ("celsius" , "fahrenheit" ) ))
277
273
.required (true )
278
274
.build ())
279
275
.build ();
You can’t perform that action at this time.
0 commit comments