cryptoapebot
cryptoapebot
Suggestion as I'm not that familiar w/ okhttp3 and Interceptors, but do you have to @Override public response in your own class and then addInterceptor(class) to the service?
Question though, doesn't shutting the ExecutorService shut down all threads? It's functionally equivalent to just quitting the program as anything w/ a thread will be shut down.
I understand that--that's why I said *equivalent to*, but my comment was it seems like a heavyweight way just to interrupt a single stream. Won't you have to restart the/a...
Seems like the best and only way for now.....
Not sure if this helps. I tried it out on the playground and in code. At first I thought that maybe you were using the wrong model, but it looks...
Not that it makes a diff as it's personal pref, I've been using Gson instead of Jackson annotations. ```public static Gson g = new Gson(); GeneratedImage gen = gs.fromJson(response.body(), GeneratedImage.class);...
Yes, of course. I'm not recommending switching, but because of my integration of calls with this library and w/ other projects, I've been forced to choose.
You pass the context in your prompt. Sometimes w/ several examples. This has to do w/ the underlying model and not this API in particular. You can use the fine-tuning...
Absolutely. OpenAiService service = new OpenAiService(token, 55);
Also, due to the popularity of ChatGPT, you do get random failures on the system. Make sure your http.getCode handles non-successful http codes.