исправь код с запроса  https://neuroapi.host/v1/chat/completions на запрос в https://api.binjie.fun/api/generateStream и измени сам код чтобы он работал по аналогии с from freeGPT import AsyncClient
from asyncio import run
async def completion():
while True:
prompt = input(“👦: “)
model = ‘gpt3’
try:
resp = await AsyncClient.create_completion(model, prompt)
print(f"🤖: {resp}”)
except Exception as e:
print(f"🤖: {e}”)

run(completion())   сам java код:    private void sendRequestToOpenAI(String userQuery) {
        Thread thread = new Thread(() -> {
            try {
//                String baseUrl = "https://api.proxyapi.ru/openai/v1/chat/completions";
//                String baseUrl = "https://4thespam.pythonanywhere.com/";
                String baseUrl = "https://neuroapi.host/v1/chat/completions";
                URL url = new URL(baseUrl);
                HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                conn.setRequestMethod("POST");
                conn.setRequestProperty("Authorization", "Bearer " + Config.getApiKey());
                conn.setRequestProperty("Content-Type", "application/json");
                conn.setDoOutput(true);

                JSONObject message = new JSONObject();
                message.put("role", "user");
                message.put("content", "Who is the mister durov");
//                message.put("content", userQuery);

                JSONArray messages = new JSONArray();
                messages.put(message);

                JSONObject jsonRequest = new JSONObject();
                jsonRequest.put("model", "gpt-3.5-turbo");
                jsonRequest.put("messages", messages);

                String payload = jsonRequest.toString();
                runOnUiThread(() -> {
                    RequestToChatGPT.setText(payload);
                    ModelUrlText.setText(url.toString());
                });

                try (OutputStream os = conn.getOutputStream()) {
                    os.write(payload.getBytes());
                    os.flush();
                }

                int responseCode = conn.getResponseCode();
                if (responseCode == HttpURLConnection.HTTP_OK) {
                    BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                    StringBuilder response = new StringBuilder();
                    String inputLine;
                    while ((inputLine = in.readLine()) != null) {
                        response.append(inputLine);
                    }
                    in.close();

                    String result = response.toString();
                    JSONObject jsonResponse = new JSONObject(result);
                    String generatedText = jsonResponse.getJSONArray("choices").getJSONObject(0).getString("text");

                    runOnUiThread(() -> {
                        TextView textView = findViewById(R.id.tvChatGPTResponse);
                        textView.setText(generatedText);
                        speakOut(generatedText);
                    });
                } else {
                    Log.e("HTTP_ERROR", "Response Code: " + responseCode);
                    String errorResponse = "HTTP Error: " + responseCode;
                    if (conn.getErrorStream() != null) {
                        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getErrorStream(), "utf-8"));
                        StringBuilder response = new StringBuilder();
                        String responseLine;
                        while ((responseLine = in.readLine()) != null) {
                            response.append(responseLine.trim());
                        }
                        in.close();
                        errorResponse += " - " + response.toString();
                    }
                    String finalErrorResponse = errorResponse;
                    runOnUiThread(() -> ErrorText.setText(finalErrorResponse));
                }
            } catch (Exception e) {
                String errorMessage = "Exception: " + e.getMessage();
                runOnUiThread(() -> ErrorText.setText(errorMessage));
                Log.e("HTTP_ERROR", errorMessage, e);
            }
        });
        thread.start();
    }