mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-30 23:26:36 +08:00
Fix text issue (#12221)
### What problem does this PR solve? Fix several text issues. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -242,7 +242,7 @@ function AgentForm({ node }: INextOperatorForm) {
|
||||
name={`delay_after_error`}
|
||||
render={({ field }) => (
|
||||
<FormItem className="flex-1">
|
||||
<FormLabel>{t('flow.delayEfterError')}</FormLabel>
|
||||
<FormLabel>{t('flow.delayAfterError')}</FormLabel>
|
||||
<FormControl>
|
||||
<NumberInput {...field} max={5} step={0.1}></NumberInput>
|
||||
</FormControl>
|
||||
|
||||
@ -115,7 +115,7 @@ export function ToolCommand({ value, onChange }: ToolCommandProps) {
|
||||
|
||||
return (
|
||||
<Command>
|
||||
<CommandInput placeholder={t('flow.typeCommandOrsearch')} />
|
||||
<CommandInput placeholder={t('flow.typeCommandORsearch')} />
|
||||
<CommandList>
|
||||
<CommandEmpty>No results found.</CommandEmpty>
|
||||
{Menus.map((x) => (
|
||||
|
||||
@ -246,7 +246,7 @@ export default function Agent() {
|
||||
</Button>
|
||||
<Button variant={'secondary'} onClick={showVersionDialog}>
|
||||
<History />
|
||||
{t('flow.historyversion')}
|
||||
{t('flow.historyVersion')}
|
||||
</Button>
|
||||
{isPipeline || (
|
||||
<Button
|
||||
|
||||
@ -61,7 +61,7 @@ export function VersionDialog({
|
||||
<DialogContent className="max-w-[60vw]">
|
||||
<DialogHeader>
|
||||
<DialogTitle className="text-base">
|
||||
{t('flow.historyversion')}
|
||||
{t('flow.historyVersion')}
|
||||
</DialogTitle>
|
||||
</DialogHeader>
|
||||
<section className="flex gap-8 relative">
|
||||
|
||||
@ -52,7 +52,7 @@ const LinkDataPipelineModal = ({
|
||||
title={
|
||||
!isEdit
|
||||
? t('knowledgeConfiguration.linkDataPipeline')
|
||||
: t('knowledgeConfiguration.eidtLinkDataPipeline')
|
||||
: t('knowledgeConfiguration.editLinkDataPipeline')
|
||||
}
|
||||
open={open}
|
||||
onOpenChange={setOpen}
|
||||
|
||||
@ -16,7 +16,7 @@ export interface MemoryListParams {
|
||||
export type MemoryType = 'raw' | 'semantic' | 'episodic' | 'procedural';
|
||||
export type StorageType = 'table' | 'graph';
|
||||
export type Permissions = 'me' | 'team';
|
||||
export type ForgettingPolicy = 'fifo' | 'lru';
|
||||
export type ForgettingPolicy = 'FIFO' | 'LRU';
|
||||
export interface ICreateMemoryProps {
|
||||
name: string;
|
||||
memory_type: MemoryType[];
|
||||
|
||||
@ -12,7 +12,7 @@ import { z } from 'zod';
|
||||
export const advancedSettingsFormSchema = {
|
||||
permissions: z.string().optional(),
|
||||
storage_type: z.enum(['table', 'graph']).optional(),
|
||||
forgetting_policy: z.enum(['lru', 'fifo']).optional(),
|
||||
forgetting_policy: z.enum(['LRU', 'FIFO']).optional(),
|
||||
temperature: z.number().optional(),
|
||||
system_prompt: z.string().optional(),
|
||||
user_prompt: z.string().optional(),
|
||||
@ -20,7 +20,7 @@ export const advancedSettingsFormSchema = {
|
||||
export const defaultAdvancedSettingsForm = {
|
||||
permissions: 'me',
|
||||
storage_type: 'table',
|
||||
forgetting_policy: 'fifo',
|
||||
forgetting_policy: 'FIFO',
|
||||
temperature: 0.7,
|
||||
system_prompt: '',
|
||||
user_prompt: '',
|
||||
@ -94,8 +94,8 @@ export const AdvancedSettingsForm = () => {
|
||||
horizontal: true,
|
||||
// placeholder: t('memory.config.storageTypePlaceholder'),
|
||||
options: [
|
||||
// { label: 'lru', value: 'lru' },
|
||||
{ label: 'fifo', value: 'fifo' },
|
||||
// { label: 'LRU', value: 'LRU' },
|
||||
{ label: 'FIFO', value: 'FIFO' },
|
||||
],
|
||||
required: false,
|
||||
}}
|
||||
|
||||
@ -57,7 +57,7 @@ export default function MemoryMessage() {
|
||||
temperature: data?.temperature,
|
||||
system_prompt: data?.system_prompt || '',
|
||||
user_prompt: data?.user_prompt || '',
|
||||
forgetting_policy: data?.forgetting_policy || 'fifo',
|
||||
forgetting_policy: data?.forgetting_policy || 'FIFO',
|
||||
storage_type: data?.storage_type || 'table',
|
||||
permissions: data?.permissions || 'me',
|
||||
});
|
||||
|
||||
@ -42,7 +42,7 @@ const AddDataSourceModal = ({
|
||||
title={
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="size-6">{sourceData?.icon}</div>
|
||||
{t('setting.addDataSourceModalTital', { name: sourceData?.name })}
|
||||
{t('setting.addDataSourceModalTitle', { name: sourceData?.name })}
|
||||
</div>
|
||||
}
|
||||
open={visible || false}
|
||||
|
||||
Reference in New Issue
Block a user