chore: chat hooks

This commit is contained in:
jialin
2025-02-19 20:50:32 +08:00
parent 9e0634f449
commit f1ab927a7e
16 changed files with 827 additions and 756 deletions
+1 -4
View File
@@ -118,10 +118,7 @@ export const fetchChunkedDataPostFormData = async (params: {
signal: params.signal
});
if (!response.ok) {
return {
error: true,
data: await errorHandler(response)
};
return await errorHandler(response);
}
const reader = response?.body?.getReader();
const decoder = new TextDecoder('utf-8', {