(new): v0.2.0 release
This commit is contained in:
@@ -137,12 +137,6 @@ type TitleEvent struct {
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
// CloseEvent describes how a completed stream should be closed or resumed.
|
||||
type CloseEvent struct {
|
||||
ClickBehavior string `json:"click_behavior"`
|
||||
AutoResume bool `json:"auto_resume"`
|
||||
}
|
||||
|
||||
// PatchEvent describes a compact patch in the DeepSeek stream protocol.
|
||||
//
|
||||
// Pointer fields distinguish:
|
||||
@@ -475,9 +469,8 @@ func (s *StreamState) applyPatch(
|
||||
case "response":
|
||||
if operation != "BATCH" {
|
||||
log.Printf(
|
||||
"unknown response operation: op=%q value=%s",
|
||||
"unknown response operation: op=%q",
|
||||
operation,
|
||||
value,
|
||||
)
|
||||
|
||||
return nil
|
||||
@@ -489,10 +482,9 @@ func (s *StreamState) applyPatch(
|
||||
|
||||
default:
|
||||
log.Printf(
|
||||
"unknown patch: path=%q op=%q value=%s",
|
||||
"unknown patch: path=%q op=%q",
|
||||
path,
|
||||
operation,
|
||||
value,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user