Results 123 comments of cryptoapebot

``` public static HttpResponse dalle2stream(String prompt) { String json = json_request.replace("${PROMPT}", prompt); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(openai_image)) .header("Content-Type","application/json") .header("Authorization", OPENAI_API_KEY) .POST(HttpRequest.BodyPublishers.ofString(json)) .build(); HttpResponse response = null; try { response =...

Biggest feature request is conversation id. @ZMobile if you use the @Data tag, you don't have to declare getters and setters. They get generated automatically with import lombok.Data if you...

> Hi, @TheoKanning do we have any documentation around this API, because I don't see it over the internet? Not to be facetious, but you are getting closer.... https://github.com/TheoKanning/openai-java

Assuming you've checked the standard things? https://status.openai.com/ Try a simple CURL get on the model listing w/o to make sure your machine has connectivity. curl https://api.openai.com/v1/models -H "Authorization: Bearer $OPENAI_API_KEY"...

I think the other option is to use gradle 8.0.2 or 8.1.1 ``` PS F:\workspace\openai-java> gradle --version ------------------------------------------------------------ Gradle 8.0.2 ------------------------------------------------------------ Build time: 2023-03-03 16:41:37 UTC Revision: 7d6581558e226a580d91d399f7dfb9e3095c2b1d Kotlin: 1.8.10...

This is my list of jar versions. Obviously some of them are for the application I have and not this and are out of date, but maybe this one? https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-jackson/2.9.0...

maybe try this one. https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind I don't remember why I am using a patched one, but I'll try that one next. Actually going back, it might not be the jackson...

https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-jackson I'm looking in my current libs, though, I just have: ``` jackson-annotations-2.14.1.jar jackson-core-2.14.1.jar jackson-databind-2.14.1.jar retrofit-2.9.0.jar rxjava-2.2.21.jar okhttp-4.10.0.jar okio-3.2.0.jar ```

This can be handled dynamically. ``` import java.util.ArrayList; import java.util.HashMap; import lombok.Data; @Data public class CategoryResults { HashMap categories = new HashMap(); HashMap category_scores = new HashMap(); Boolean flagged =...