diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx index 48cf05c6de..ce481a0cb7 100644 --- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx +++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx @@ -10,7 +10,6 @@ import Slider from '@/app/components/base/slider' import Radio from '@/app/components/base/radio' import { SimpleSelect } from '@/app/components/base/select' import TagInput from '@/app/components/base/tag-input' -import Badge from '@/app/components/base/badge' import { useTranslation } from 'react-i18next' export type ParameterValue = number | string | string[] | boolean | undefined @@ -281,19 +280,6 @@ const ParameterItem: FC = ({ /> ) } - {/* TODO: wait api return and product design */} - {parameterRule.name === 'json_schema' && ( - -
{t('app.structOutput.legacyTip')}
- {t('app.structOutput.learnMore')} - - )} - > - {t('app.structOutput.legacy')} -
- )} { parameterRule.type === 'tag' && ( diff --git a/web/app/components/workflow/nodes/llm/components/structure-output.tsx b/web/app/components/workflow/nodes/llm/components/structure-output.tsx index 374262ccf8..5ebe12eff2 100644 --- a/web/app/components/workflow/nodes/llm/components/structure-output.tsx +++ b/web/app/components/workflow/nodes/llm/components/structure-output.tsx @@ -3,7 +3,7 @@ import Button from '@/app/components/base/button' import { RiEditLine } from '@remixicon/react' import type { FC } from 'react' import React, { useCallback } from 'react' -import type { SchemaRoot, StructuredOutput } from '../types' +import { type SchemaRoot, type StructuredOutput, Type } from '../types' import ShowPanel from '@/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show' import { useBoolean } from 'ahooks' import JsonSchemaConfigModal from './json-schema-config-modal' @@ -59,7 +59,12 @@ const StructureOutput: FC = ({ {showConfig && ( diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index ae09a5e8c2..3f5023a5bd 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -190,9 +190,6 @@ const translation = { structuredTip: 'Structured Outputs is a feature that ensures the model will always generate responses that adhere to your supplied JSON Schema', modelNotSupported: 'Model not supported', modelNotSupportedTip: 'The current model does not support this feature and is automatically downgraded to prompt injection.', - legacy: 'Legacy', - legacyTip: 'JSON Schema will be removed from model parameters, you can use the structured output functionality under nodes instead.', - learnMore: 'Learn more', }, } diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.ts index 6f75663851..ea94412ab0 100644 --- a/web/i18n/zh-Hans/app.ts +++ b/web/i18n/zh-Hans/app.ts @@ -191,9 +191,6 @@ const translation = { structuredTip: '结构化输出是一项功能,可确保模型始终生成符合您提供的 JSON 模式的响应', modelNotSupported: '模型不支持', modelNotSupportedTip: '当前模型不支持此功能,将自动降级为提示注入。', - legacy: '遗留', - legacyTip: '此功能将在未来版本中删除', - learnMore: '了解更多', }, }