HamaWhiteGG/langchain-java

jackson解析json报错 经常出现

mumengmeng opened this issue · 1 comments

测试 报错 如下图代码

    ChatCompletion chatCompletion = ChatCompletion.builder()
            .model("gpt-3.5-turbo-16k")
            .messages(List.of(message))
            .temperature(0.5f)
            .stream(true)
            .build();

    String msg = client.chatCompletion(chatCompletion);
    System.out.println(msg);
    client.close();
image

sorry 找到问题了 因为我设置stream(true) 但是没用streamchatcompletion