Open LeXwDeX opened 3 days ago
当SSE推送消息的时候,收到这种消息会触发stop导致模型停止输出。
stop
data: {"id":"chatcmpl-9eecNoubJGBMDtO7YnhA3hIa9fxzK","object":"chat.completion.chunk","created":1719476283,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_abc28019ad","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]} data: {"id":"chatcmpl-9eecNoubJGBMDtO7YnhA3hIa9fxzK","object":"chat.completion.chunk","created":1719476283,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_abc28019ad","choices":[{"index":0,"delta":{"content":" tokenizer"},"logprobs":null,"finish_reason":null}]} data: {"id":"chatcmpl-9eecNoubJGBMDtO7YnhA3hIa9fxzK","object":"chat.completion.chunk","created":1719476283,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_abc28019ad","choices":[{"index":0,"delta":{"content":"(f"},"logprobs":null,"finish_reason":null}]} data: {"id":"chatcmpl-9eecNoubJGBMDtO7YnhA3hIa9fxzK","object":"chat.completion.chunk","created":1719476283,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_abc28019ad","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}]} data: {"id":"chatcmpl-9eecNoubJGBMDtO7YnhA3hIa9fxzK","object":"chat.completion.chunk","created":1719476283,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_abc28019ad","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE]
遇到一个奇怪的地方,这里会触发"finish_reason":"stop"
"finish_reason":"stop"
Bot detected the issue body's language is not English, translate it automatically. Title: [Bug] You will encounter a situation where finish_reason is stop.
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] You will encounter a situation where finish_reason is stop.
Bug Description
当SSE推送消息的时候,收到这种消息会触发
stop
导致模型停止输出。遇到一个奇怪的地方,这里会触发
"finish_reason":"stop"