mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 08:56:47 +08:00
Feat: When the webhook returns a field in streaming format, the message displays the status field. #10427 (#12075)
### What problem does this PR solve? Feat: When the webhook returns a field in streaming format, the message displays the status field. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: balibabu <assassin_cike@163.com>
This commit is contained in:
19
web/src/components/webhook-response-status.tsx
Normal file
19
web/src/components/webhook-response-status.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RAGFlowFormItem } from './ragflow-form';
|
||||
import { Input } from './ui/input';
|
||||
|
||||
type WebHookResponseStatusFormFieldProps = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
export function WebHookResponseStatusFormField({
|
||||
name,
|
||||
}: WebHookResponseStatusFormFieldProps) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<RAGFlowFormItem name={name} label={t('flow.webhook.status')}>
|
||||
<Input type="number"></Input>
|
||||
</RAGFlowFormItem>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user