Skip to content

Commit

Permalink
add think segment
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Feb 7, 2025
1 parent d0db52f commit c92e959
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BE/Controllers/Chats/Chats/Dtos/SseResponseKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ public enum SseResponseKind
TitleSegment = 5,
ResponseMessage = 6,
ChatLeafMessageId = 7,
ThinkSegment = 8,
}
10 changes: 10 additions & 0 deletions src/BE/Controllers/Chats/Chats/Dtos/SseResponseLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ public static SseResponseLine Segment(byte spanId, string segment)
};
}

public static SseResponseLine ThinkSegment(byte spanId, string segment)
{
return new SseResponseLine
{
SpanId = spanId,
Result = segment,
Kind = SseResponseKind.ThinkSegment,
};
}

public static SseResponseLine Error(byte spanId, string error)
{
return new SseResponseLine
Expand Down

0 comments on commit c92e959

Please sign in to comment.