Commit 59ab019b authored by Joel's avatar Joel

Merge branch 'main' into feat/embedding

parents 34a49211 b23d8a91
......@@ -200,7 +200,7 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
return (
<Tooltip
selector={`user-feedback-${randomString(16)}`}
content={(isWebScene || (!isUserFeedback && !isWebScene)) ? isLike ? '取消赞同' : '取消反对' : (!isWebScene && isUserFeedback) ? `用户表示${isLike ? '赞同' : '反对'}` : ''}
content={((isWebScene || (!isUserFeedback && !isWebScene)) ? isLike ? t('appDebug.operation.cancelAgree') : t('appDebug.operation.cancelDisagree') : (!isWebScene && isUserFeedback) ? `${t('appDebug.operation.userAction')}${isLike ? t('appDebug.operation.agree') : t('appDebug.operation.disagree')}` : '') as string}
>
<div
className={`relative box-border flex items-center justify-center h-7 w-7 p-0.5 rounded-lg bg-white cursor-pointer text-gray-500 hover:text-gray-800 ${(!isWebScene && isUserFeedback) ? '!cursor-default' : ''}`}
......
......@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
# Completion App API
For high-quality text generation, such as articles, summaries, and translations, use the completion-messages API with user input. Text generation relies on the model parameters and prompt templates set in LangGenius Prompt Engineering.
For high-quality text generation, such as articles, summaries, and translations, use the completion-messages API with user input. Text generation relies on the model parameters and prompt templates set in Dify Prompt Engineering.
<Heading
url='/completion-messages'
......
......@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
# 文本生成型应用 API
可用于生成高质量文本的应用,例如生成文章、摘要、翻译等,通过调用 completion-messages 接口,发送用户输入得到生成文本结果。用于生成文本的模型参数和提示词模版取决于开发者在 LangGenius 提示词编排页的设置。
可用于生成高质量文本的应用,例如生成文章、摘要、翻译等,通过调用 completion-messages 接口,发送用户输入得到生成文本结果。用于生成文本的模型参数和提示词模版取决于开发者在 Dify 提示词编排页的设置。
<Heading
url='/completion-messages'
......
......@@ -6,6 +6,11 @@ const translation = {
addFeature: 'Add Feature',
automatic: 'Automatic',
stopResponding: 'Stop responding',
agree: 'agree',
disagree: 'disagree',
cancelAgree: 'Cancel agree',
cancelDisagree: 'Cancel disagree',
userAction: 'User ',
},
notSetAPIKey: {
title: 'LLM provider key has not been set',
......
......@@ -6,6 +6,11 @@ const translation = {
addFeature: '添加功能',
automatic: '自动编排',
stopResponding: '停止响应',
agree: '赞同',
disagree: '反对',
cancelAgree: '取消赞同',
cancelDisagree: '取消反对',
userAction: '用户表示',
},
notSetAPIKey: {
title: 'LLM 提供者的密钥未设置',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment