-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: 0.1.4
- Loading branch information
Showing
3 changed files
with
58 additions
and
123 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/main/java/net/teumteum/user/infra/ChatCompletionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package net.teumteum.user.infra; | ||
|
||
import java.util.List; | ||
|
||
public record ChatCompletionResponse( | ||
String id, | ||
String object, | ||
long created, | ||
String model, | ||
List<ChatCompletionResponse.Choice> choices, | ||
ChatCompletionResponse.Usage usage, | ||
String systemFingerprint | ||
) { | ||
|
||
public record Choice( | ||
int index, | ||
Message message, | ||
Object logprobs, | ||
String finishReason | ||
) { | ||
|
||
} | ||
|
||
public record Message( | ||
String role, | ||
String content | ||
) { | ||
|
||
} | ||
|
||
public record Usage( | ||
int promptTokens, | ||
int completionTokens, | ||
int totalTokens | ||
) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 0 additions & 119 deletions
119
src/test/java/net/teumteum/user/infra/GptInterestQuestionTest.java
This file was deleted.
Oops, something went wrong.