Commit 1625713
File tree
Expand file treeCollapse file tree
29 files changed
+318
-248
lines changedFilter options
- api
- src/main/java/com/theokanning/openai
- completion
- chat
- edit
- embedding
- model
- moderation
- client
- example/src/main/java/example
- service
- src
- main/java/com/theokanning/openai/service
- test/java/com/theokanning/openai/service
Expand file treeCollapse file tree
29 files changed
+318
-248
lines changed+19-4Lines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 |
| - |
| 7 | + |
8 | 8 |
|
9 | 9 |
|
10 |
| - |
11 |
| - |
| 10 | + |
| 11 | + |
12 | 12 |
|
13 | 13 |
|
14 | 14 |
|
| ||
95 | 95 |
|
96 | 96 |
|
97 | 97 |
|
98 |
| - |
| 98 | + |
| 99 | + |
| 100 | + |
99 | 101 |
|
100 | 102 |
|
101 | 103 |
|
| ||
104 | 106 |
|
105 | 107 |
|
106 | 108 |
|
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
107 | 122 |
|
108 | 123 |
|
109 | 124 |
|
|
api/gradle.properties
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
1 | 1 |
|
2 | 2 |
|
3 |
| - |
| 3 | + |
api/src/main/java/com/theokanning/openai/completion/CompletionChoice.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/CompletionChoice.java+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
3 | 3 |
|
4 | 4 |
|
5 | 5 |
|
6 |
| - |
| 6 | + |
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
| ||
25 | 25 |
|
26 | 26 |
|
27 | 27 |
|
28 |
| - |
| 28 | + |
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
api/src/main/java/com/theokanning/openai/completion/CompletionChunk.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/CompletionChunk.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
26 | 26 |
|
27 | 27 |
|
28 | 28 |
|
29 |
| - |
| 29 | + |
30 | 30 |
|
31 | 31 |
|
32 | 32 |
|
|
api/src/main/java/com/theokanning/openai/completion/CompletionResult.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/CompletionResult.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
32 |
| - |
| 32 | + |
33 | 33 |
|
34 | 34 |
|
35 | 35 |
|
|
api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionChoice.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionChoice.java+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 |
| - |
| 7 | + |
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
| ||
21 | 21 |
|
22 | 22 |
|
23 | 23 |
|
24 |
| - |
| 24 | + |
25 | 25 |
|
26 | 26 |
|
27 | 27 |
|
|
api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionChunk.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionChunk.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
24 | 24 |
|
25 | 25 |
|
26 | 26 |
|
27 |
| - |
| 27 | + |
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
|
api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionRequest.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionRequest.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
16 | 16 |
|
17 | 17 |
|
18 | 18 |
|
19 |
| - |
| 19 | + |
20 | 20 |
|
21 | 21 |
|
22 | 22 |
|
|
api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionResult.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionResult.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
26 | 26 |
|
27 | 27 |
|
28 | 28 |
|
29 |
| - |
| 29 | + |
30 | 30 |
|
31 | 31 |
|
32 | 32 |
|
|
api/src/main/java/com/theokanning/openai/edit/EditChoice.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/edit/EditChoice.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
3 | 3 |
|
4 | 4 |
|
5 | 5 |
|
6 |
| - |
| 6 | + |
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
|
api/src/main/java/com/theokanning/openai/edit/EditResult.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/edit/EditResult.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
9 |
| - |
| 9 | + |
10 | 10 |
|
11 | 11 |
|
12 | 12 |
|
|
api/src/main/java/com/theokanning/openai/embedding/EmbeddingResult.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/embedding/EmbeddingResult.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 |
| - |
| 17 | + |
18 | 18 |
|
19 | 19 |
|
20 | 20 |
|
|
api/src/main/java/com/theokanning/openai/model/Model.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/model/Model.java+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
9 |
| - |
| 9 | + |
10 | 10 |
|
11 | 11 |
|
12 | 12 |
|
| ||
23 | 23 |
|
24 | 24 |
|
25 | 25 |
|
26 |
| - |
| 26 | + |
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
|
api/src/main/java/com/theokanning/openai/model/Permission.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/model/Permission.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 |
| - |
| 7 | + |
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
|
api/src/main/java/com/theokanning/openai/moderation/ModerationResult.java
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/moderation/ModerationResult.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
17 | 17 |
|
18 | 18 |
|
19 | 19 |
|
20 |
| - |
| 20 | + |
21 | 21 |
|
22 | 22 |
|
23 | 23 |
|
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 |
| - |
| 7 | + |
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
|
client/gradle.properties
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
1 | 1 |
|
2 | 2 |
|
3 |
| - |
| 3 | + |
example/src/main/java/example/OpenAiApiExample.java
Copy file name to clipboardExpand all lines: example/src/main/java/example/OpenAiApiExample.java+26Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
1 | 1 |
|
2 | 2 |
|
| 3 | + |
| 4 | + |
| 5 | + |
3 | 6 |
|
4 | 7 |
|
5 | 8 |
|
6 | 9 |
|
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
7 | 14 |
|
8 | 15 |
|
9 | 16 |
|
| ||
26 | 33 |
|
27 | 34 |
|
28 | 35 |
|
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
29 | 55 |
|
30 | 56 |
|
example/src/main/java/example/OpenAiApiStreamExample.java
Copy file name to clipboardExpand all lines: example/src/main/java/example/OpenAiApiStreamExample.java-79Lines changed: 0 additions & 79 deletions
This file was deleted.
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
1 | 1 |
|
2 |
| - |
| 2 | + |
3 | 3 |
|
4 | 4 |
|
5 | 5 |
|
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
11 |
| - |
| 11 | + |
| 12 | + |
12 | 13 |
|
13 | 14 |
|
14 | 15 |
|
|
service/gradle.properties
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
1 | 1 |
|
2 | 2 |
|
3 |
| - |
| 3 | + |
service/src/main/java/com/theokanning/openai/service/AuthenticationInterceptor.java
Copy file name to clipboardExpand all lines: service/src/main/java/com/theokanning/openai/service/AuthenticationInterceptor.java+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
| ||
5 | 5 |
|
6 | 6 |
|
7 | 7 |
|
| 8 | + |
8 | 9 |
|
9 | 10 |
|
10 | 11 |
|
| ||
14 | 15 |
|
15 | 16 |
|
16 | 17 |
|
| 18 | + |
17 | 19 |
|
18 | 20 |
|
19 | 21 |
|
|
0 commit comments