mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-01 09:06:55 +00:00
Native data AI application framework based on AWEL+AGENT (#1152)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: lcx01800250 <lcx01800250@alibaba-inc.com> Co-authored-by: licunxing <864255598@qq.com> Co-authored-by: Aralhi <xiaoping0501@gmail.com> Co-authored-by: xuyuan23 <643854343@qq.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: hzh97 <2976151305@qq.com>
This commit is contained in:
@@ -76,7 +76,11 @@ const ChatContainer = () => {
|
||||
data: { ...data, chat_mode: scene || 'chat_normal', model_name: model, user_input: content },
|
||||
chatId,
|
||||
onMessage: (message) => {
|
||||
tempHistory[index].context = message;
|
||||
if (data?.incremental) {
|
||||
tempHistory[index].context += message;
|
||||
} else {
|
||||
tempHistory[index].context = message;
|
||||
}
|
||||
setHistory([...tempHistory]);
|
||||
},
|
||||
onDone: () => {
|
||||
|
Reference in New Issue
Block a user