Skip to content

Commit 12cdb6d

Browse files
author
push edp
committed
feat: support for Assistant stream mode and implemented stream event callbacks
1 parent abb0e96 commit 12cdb6d

File tree

5 files changed

+431
-27
lines changed

5 files changed

+431
-27
lines changed

assistant_stream.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@ import (
66
"net/http"
77
)
88

9-
/*
10-
type AssistantThreadRunStreamDelta struct {
11-
Content string `json:"content,omitempty"`
12-
Role string `json:"role,omitempty"`
13-
}
14-
*/
159
type AssistantThreadRunStreamResponse struct {
16-
ID string `json:"id"`
17-
Object string `json:"object"`
10+
ID string `json:"id"`
11+
Object string `json:"object"`
12+
Delta MessageDelta `json:"delta,omitempty"`
1813
}
1914

2015
type AssistantThreadRunStream struct {

0 commit comments

Comments
 (0)