mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 05:12:38 +02:00
feat(chat): enhance error formatting to include optional error codes for better frontend handling
This commit is contained in:
parent
fa6a09197e
commit
901de33684
4 changed files with 97 additions and 58 deletions
|
|
@ -256,7 +256,7 @@ export type SSEEvent =
|
|||
}>;
|
||||
};
|
||||
}
|
||||
| { type: "error"; errorText: string };
|
||||
| { type: "error"; errorText: string; errorCode?: string };
|
||||
|
||||
/**
|
||||
* Async generator that reads an SSE stream and yields parsed JSON objects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue