Compare commits
No commits in common. "1ce2658b5535eb9d74d257acc96b95a5c9946c31" and "dbf6e17bfb5c3f019c14099c85d24a70e0ef0646" have entirely different histories.
1ce2658b55
...
dbf6e17bfb
2 changed files with 1 additions and 8 deletions
|
@ -38,7 +38,6 @@ public class DiscordBot implements Runnable {
|
|||
.setToken(discordApiKey)
|
||||
.login()
|
||||
.join();
|
||||
discordApi.setMessageCacheSize(10, 60*60);
|
||||
var future = new CompletableFuture<Void>();
|
||||
Runtime.getRuntime().addShutdownHook(Thread.ofVirtual().unstarted(() -> {
|
||||
logger.info("Shutting down Discord application");
|
||||
|
|
|
@ -4,13 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public record ChatGPTResponse(String id,
|
||||
String object,
|
||||
long created,
|
||||
String model,
|
||||
Usage usage,
|
||||
List<Choice> choices,
|
||||
@JsonProperty("system_fingerprint") String systemFingerprint) {
|
||||
public record ChatGPTResponse(String id, String object, long created, String model, Usage usage, List<Choice> choices) {
|
||||
|
||||
public record Usage(@JsonProperty("prompt_tokens") int promptTokens,
|
||||
@JsonProperty("completion_tokens") int completionTokens,
|
||||
|
|
Loading…
Reference in a new issue