File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ use super::{
35
35
pub enum AssistantStreamEvent {
36
36
/// Occurs when a new [thread](https://platform.openai.com/docs/api-reference/threads/object) is created.
37
37
#[ serde( rename = "thread.created" ) ]
38
- TreadCreated ( ThreadObject ) ,
38
+ ThreadCreated ( ThreadObject ) ,
39
39
/// Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created.
40
40
#[ serde( rename = "thread.run.created" ) ]
41
41
ThreadRunCreated ( RunObject ) ,
@@ -119,7 +119,7 @@ impl TryFrom<eventsource_stream::Event> for AssistantStreamEvent {
119
119
match value. event . as_str ( ) {
120
120
"thread.created" => serde_json:: from_str :: < ThreadObject > ( value. data . as_str ( ) )
121
121
. map_err ( |e| map_deserialization_error ( e, value. data . as_bytes ( ) ) )
122
- . map ( AssistantStreamEvent :: TreadCreated ) ,
122
+ . map ( AssistantStreamEvent :: ThreadCreated ) ,
123
123
"thread.run.created" => serde_json:: from_str :: < RunObject > ( value. data . as_str ( ) )
124
124
. map_err ( |e| map_deserialization_error ( e, value. data . as_bytes ( ) ) )
125
125
. map ( AssistantStreamEvent :: ThreadRunCreated ) ,
You can’t perform that action at this time.
0 commit comments