mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 12:56:55 +08:00
Feat: Display the thinking process according to the start_to_think flag of the message #3221 (#8888)
### What problem does this PR solve? Feat: Display the thinking process according to the start_to_think flag of the message #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
import { CheckIcon, ChevronDownIcon } from 'lucide-react';
|
||||
import {
|
||||
Fragment,
|
||||
ReactNode,
|
||||
forwardRef,
|
||||
useCallback,
|
||||
useEffect,
|
||||
@ -29,7 +30,7 @@ import { cn } from '@/lib/utils';
|
||||
import { RAGFlowSelectOptionType } from '../ui/select';
|
||||
|
||||
export type SelectWithSearchFlagOptionType = {
|
||||
label: string;
|
||||
label: ReactNode;
|
||||
value?: string;
|
||||
options?: RAGFlowSelectOptionType[];
|
||||
};
|
||||
@ -109,10 +110,10 @@ export const SelectWithSearch = forwardRef<
|
||||
<CommandInput placeholder="Search ..." />
|
||||
<CommandList>
|
||||
<CommandEmpty>No data found.</CommandEmpty>
|
||||
{options.map((group) => {
|
||||
{options.map((group, idx) => {
|
||||
if (group.options) {
|
||||
return (
|
||||
<Fragment key={group.label}>
|
||||
<Fragment key={idx}>
|
||||
<CommandGroup heading={group.label}>
|
||||
{group.options.map((option) => (
|
||||
<CommandItem
|
||||
|
||||
Reference in New Issue
Block a user