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:
Jin Hai
2025-12-26 11:18:08 +08:00
committed by GitHub
parent 5fb38ecc2a
commit 6044314811
18 changed files with 62 additions and 62 deletions

View File

@ -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>

View File

@ -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) => (

View File

@ -246,7 +246,7 @@ export default function Agent() {
</Button>
<Button variant={'secondary'} onClick={showVersionDialog}>
<History />
{t('flow.historyversion')}
{t('flow.historyVersion')}
</Button>
{isPipeline || (
<Button

View File

@ -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">

View File

@ -52,7 +52,7 @@ const LinkDataPipelineModal = ({
title={
!isEdit
? t('knowledgeConfiguration.linkDataPipeline')
: t('knowledgeConfiguration.eidtLinkDataPipeline')
: t('knowledgeConfiguration.editLinkDataPipeline')
}
open={open}
onOpenChange={setOpen}

View File

@ -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[];

View File

@ -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,
}}

View File

@ -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',
});

View File

@ -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}