HamaWhiteGG / langchain-java

Java version of LangChain, while empowering LLM for Big Data.
Apache License 2.0
551 stars 107 forks source link

jackson解析json报错 经常出现 #108

Closed mumengmeng closed 1 year ago

mumengmeng commented 1 year ago

测试 报错 如下图代码

    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
mumengmeng commented 1 year ago

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