We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3762a4 commit 2a0e9d1Copy full SHA for 2a0e9d1
app/frontend/src/pages/chat/Chat.tsx
@@ -90,7 +90,7 @@ const Chat = () => {
90
for await (const event of readNDJSONStream(responseBody)) {
91
if (event["choices"] && event["choices"][0]["context"] && event["choices"][0]["context"]["data_points"]) {
92
event["choices"][0]["message"] = event["choices"][0]["delta"];
93
- askResponse = event;
+ askResponse = event as ChatAppResponse;
94
} else if (event["choices"] && event["choices"][0]["delta"]["content"]) {
95
setIsLoading(false);
96
await updateState(event["choices"][0]["delta"]["content"]);
0 commit comments