Skip to content

Commit e5e0a66

Browse files
committed
feat: 商汤流式
1 parent f349742 commit e5e0a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chat_stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ type ChatCompletionStreamChoiceDelta struct {
1717
// the doc from deepseek:
1818
// - https://api-docs.deepseek.com/api/create-chat-completion#responses
1919
ReasoningContent string `json:"reasoning_content,omitempty"`
20-
// sb sentence
21-
Message string `json:"message,omitempty"`
2220
}
2321

2422
type ChatCompletionStreamChoiceLogprobs struct {
@@ -45,6 +43,8 @@ type ChatCompletionStreamChoice struct {
4543
Logprobs *ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
4644
FinishReason FinishReason `json:"finish_reason"`
4745
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
46+
// sb sentence
47+
Message string `json:"message,omitempty"`
4848
}
4949

5050
type PromptFilterResult struct {

0 commit comments

Comments
 (0)