Grt1228 / chatgpt-steam-output

Open AI ChatGPT流式输出。Open AI Stream output. ChatGPT Stream output.GPT-3.5
461 stars 173 forks source link

消息接收转换异常 #37

Closed Jie-gi closed 8 months ago

Jie-gi commented 8 months ago

2024-02-23 16:50:12.129 INFO 5164 --- [.openai.com/...] u.c.l.OpenAIWebSocketEventSourceListener : OpenAI返回数据:{"id":"chatcmpl-8vLXvRaXtL18nmF0bMkm04uHZRlk0","object":"chat.completion.chunk","created":1708678211,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_86156a94a0","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} 2024-02-23 16:50:12.149 ERROR 5164 --- [.openai.com/...] u.c.l.OpenAIWebSocketEventSourceListener : OpenAI sse连接异常data:,异常:{}

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "system_fingerprint" (class com.unfbx.chatgpt.entity.chat.ChatCompletionResponse), not marked as ignorable (6 known properties: "usage", "choices", "created", "model", "id", "object"]) at [Source: (String)"{"id":"chatcmpl-8vLXvRaXtL18nmF0bMkm04uHZRlk0","object":"chat.completion.chunk","created":1708678211,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_86156a94a0","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}"; line: 1, column: 153] (through reference chain: com.unfbx.chatgpt.entity.chat.ChatCompletionResponse["system_fingerprint"])

Jie-gi commented 8 months ago

升级版本1.1.3版本后解决了