mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
### What problem does this PR solve? Feat: Let system variables appear in operator prompts #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -35,7 +35,7 @@ const AgentChatBox = () => {
|
||||
return (
|
||||
<>
|
||||
<section className="flex flex-1 flex-col pl-5 h-[90vh]">
|
||||
<div className="flex-1 ">
|
||||
<div className="flex-1 overflow-auto">
|
||||
<div>
|
||||
<Spin spinning={loading}>
|
||||
{derivedMessages?.map((message, i) => {
|
||||
|
||||
@ -27,7 +27,7 @@ const antMessage = message;
|
||||
|
||||
export const useSelectNextMessages = () => {
|
||||
const { data: flowDetail, loading } = useFetchAgent();
|
||||
const reference = flowDetail.dsl.reference;
|
||||
const reference = flowDetail.dsl.retrieval;
|
||||
const {
|
||||
derivedMessages,
|
||||
ref,
|
||||
@ -134,11 +134,6 @@ export const useSendNextMessage = () => {
|
||||
addNewestAnswer({
|
||||
answer: content,
|
||||
id: id,
|
||||
reference: {
|
||||
chunks: [],
|
||||
doc_aggs: [],
|
||||
total: 0,
|
||||
},
|
||||
});
|
||||
}
|
||||
}, [answerList, addNewestAnswer]);
|
||||
@ -161,11 +156,6 @@ export const useSendNextMessage = () => {
|
||||
if (prologue) {
|
||||
addNewestAnswer({
|
||||
answer: prologue,
|
||||
reference: {
|
||||
chunks: [],
|
||||
doc_aggs: [],
|
||||
total: 0,
|
||||
},
|
||||
});
|
||||
}
|
||||
}, [addNewestAnswer, prologue]);
|
||||
|
||||
Reference in New Issue
Block a user