Commit 3f22fdd0 authored by StyleZhang's avatar StyleZhang

Merge branch 'main' into feat/chat-support-voice-input

parents 0b928a0a 5e2c3eea
...@@ -206,7 +206,7 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba ...@@ -206,7 +206,7 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
return ( return (
<Tooltip <Tooltip
selector={`user-feedback-${randomString(16)}`} 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 <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' : ''}`} 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' : ''}`}
......
...@@ -369,6 +369,9 @@ const Main: FC<IMainProps> = ({ ...@@ -369,6 +369,9 @@ const Main: FC<IMainProps> = ({
} }
const checkCanSend = () => { const checkCanSend = () => {
if (currConversationId !== '-1')
return true
const prompt_variables = promptConfig?.prompt_variables const prompt_variables = promptConfig?.prompt_variables
const inputs = currInputs const inputs = currInputs
if (!inputs || !prompt_variables || prompt_variables?.length === 0) if (!inputs || !prompt_variables || prompt_variables?.length === 0)
......
...@@ -6,6 +6,11 @@ const translation = { ...@@ -6,6 +6,11 @@ const translation = {
addFeature: 'Add Feature', addFeature: 'Add Feature',
automatic: 'Automatic', automatic: 'Automatic',
stopResponding: 'Stop responding', stopResponding: 'Stop responding',
agree: 'agree',
disagree: 'disagree',
cancelAgree: 'Cancel agree',
cancelDisagree: 'Cancel disagree',
userAction: 'User ',
}, },
notSetAPIKey: { notSetAPIKey: {
title: 'LLM provider key has not been set', title: 'LLM provider key has not been set',
......
...@@ -6,6 +6,11 @@ const translation = { ...@@ -6,6 +6,11 @@ const translation = {
addFeature: '添加功能', addFeature: '添加功能',
automatic: '自动编排', automatic: '自动编排',
stopResponding: '停止响应', stopResponding: '停止响应',
agree: '赞同',
disagree: '反对',
cancelAgree: '取消赞同',
cancelDisagree: '取消反对',
userAction: '用户表示',
}, },
notSetAPIKey: { notSetAPIKey: {
title: 'LLM 提供者的密钥未设置', 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