由于采取http3.internal.http RealResponseBody@d7a7722而无法加载响应

问题描述 投票:0回答:1

由于 takehttp3.internal.http RealResponseBody@d7a7722 无法加载响应如何解决它我无法获得输出enter image description here

我的代码是 @覆盖 public void onResponse(@NonNull Call 调用,@NonNull Response 响应) throws IOException { if (response.isSuccessful()){ JSONObject jsonObject= null; 尝试 { jsonObject = new JSONObject(response.body().string()); JSONArray jsonArray=jsonObject.getJSONArray("选择"); 字符串结果=jsonArray.getJSONObject(0).getString(“文本”); addResponse(结果.trim()); } catch (JSONException e) { 抛出新的运行时异常(e); }

            }else{
                addResponse("Failed to load response due to"+response.body().toString());
            }
        }
    });

我尝试更改不同的 API 密钥,但显示相同的错误

okhttp openai-api
1个回答
0
投票

Hacer un programa en C que obtenga e imprima el valor de Y a partir de la ecuación: Y = 3X 2+ 7X -15。单独接受 X 的价值 市长10.

© www.soinside.com 2019 - 2024. All rights reserved.