Skip to content

Commit

Permalink
remove silent fails for Unhandled Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Feb 16, 2024
1 parent 3660d7e commit febd7f1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sydney/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,6 @@ func (o *Sydney) AskStreamRaw(options AskStreamOptions) (CreateConversationRespo
}
result := gjson.Parse(msg)
if result.Get("type").Int() == 2 && result.Get("item.result.value").String() != "Success" {
if result.Get("item.result.message").String() == "Unhandled Exception" {
slog.Warn("Suppressed Unhandled Exception", "v",
result.Get("item.result").Raw)
return
}
msgChan <- RawMessage{
Error: errors.New("bing explicit error: value: " +
result.Get("item.result.value").String() + "; message: " +
Expand Down

0 comments on commit febd7f1

Please sign in to comment.