mirror of
https://github.com/hanzoai/go-openai-realtime.git
synced 2026-09-30 21:54:42 +00:00
fix: make ResponseID optional in ResponseCancelEvent
This commit is contained in:
+1
-1
@@ -279,7 +279,7 @@ func (m ResponseCreateEvent) MarshalJSON() ([]byte, error) {
|
|||||||
type ResponseCancelEvent struct {
|
type ResponseCancelEvent struct {
|
||||||
EventBase
|
EventBase
|
||||||
// A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
|
// A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
|
||||||
ResponseID string `json:"response_id"`
|
ResponseID string `json:"response_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m ResponseCancelEvent) ClientEventType() ClientEventType {
|
func (m ResponseCancelEvent) ClientEventType() ClientEventType {
|
||||||
|
|||||||
Reference in New Issue
Block a user