feat(dify): 把本地控制台的中文与去外链改动入库

这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 09:44:09 +08:00
1 parent 9c7c80e194
commit c2cb845a32
211 files changed
+3030 -2794

No files matched your search

@@ -56,13 +56,10 @@ describe('MultimodalRetrievalGuidance', () => {
screen.getByText('datasetSettings.form.multimodalRetrievalGuidance.pipelineDescription'),
).toBeInTheDocument()
expect(
screen.getByRole('link', {
screen.queryByRole('link', {
name: 'datasetSettings.form.multimodalRetrievalGuidance.helpLink',
}),
).toHaveAttribute(
'href',
'https://dify.ai/blog/multimodal-retrieval-is-now-available-in-the-knowledge-base',
)
).not.toBeInTheDocument()
expect(
screen.getByText('datasetSettings.form.multimodalRetrievalGuidance.helpDescription'),
).toBeInTheDocument()
@@ -103,9 +100,7 @@ describe('MultimodalRetrievalGuidance', () => {
expect(localStorage.getItem(MULTIMODAL_RETRIEVAL_GUIDANCE_DISMISSED_STORAGE_KEY)).toBe('true')
expect(
screen.getByRole('link', {
name: 'datasetSettings.form.multimodalRetrievalGuidance.helpLink',
}),
screen.getByText('datasetSettings.form.multimodalRetrievalGuidance.helpDescription'),
).toBeInTheDocument()
expect(
screen.queryByText('datasetSettings.form.multimodalRetrievalGuidance.createTitle'),
@@ -19,9 +19,6 @@ type MultimodalRetrievalGuidanceProps = {
className?: string
}
const MULTIMODAL_RETRIEVAL_DOC_URL =
'https://dify.ai/blog/multimodal-retrieval-is-now-available-in-the-knowledge-base'
const isVisionEmbeddingModel = (
embeddingModel?: DefaultModel,
embeddingModelList?: ProviderWithModelsResponse[],
@@ -74,17 +71,6 @@ export const MultimodalRetrievalGuidanceLearnMore = ({ className }: { className?
return (
<div className={cn('flex items-center body-xs-regular text-text-tertiary', className)}>
<a
target="_blank"
rel="noopener noreferrer"
href={MULTIMODAL_RETRIEVAL_DOC_URL}
className="text-text-accent"
>
{t(($) => $['form.multimodalRetrievalGuidance.helpLink'], {
ns: 'datasetSettings',
})}
</a>
&nbsp;
{t(($) => $['form.multimodalRetrievalGuidance.helpDescription'], {
ns: 'datasetSettings',
})}