mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-07 20:10:08 +00:00
feat(ChatKnowledge): Support Financial Report Analysis (#1702)
Co-authored-by: hzh97 <2976151305@qq.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: licunxing <864255598@qq.com>
This commit is contained in:
@@ -52,6 +52,13 @@ const useChat = ({ queryAgentURL = '/api/v1/chat/completions' }: Props) => {
|
||||
if (response.ok && response.headers.get('content-type') === EventStreamContentType) {
|
||||
return;
|
||||
}
|
||||
if (response.headers.get('content-type') === 'application/json') {
|
||||
response.json().then((data) => {
|
||||
onMessage?.(data);
|
||||
onDone?.();
|
||||
ctrl.abort();
|
||||
});
|
||||
}
|
||||
},
|
||||
onclose() {
|
||||
ctrl.abort();
|
||||
|
Reference in New Issue
Block a user