diff --git a/packages/web/src/pages/TranslatePage.tsx b/packages/web/src/pages/TranslatePage.tsx index 9c18aafa..d18089a2 100644 --- a/packages/web/src/pages/TranslatePage.tsx +++ b/packages/web/src/pages/TranslatePage.tsx @@ -104,8 +104,10 @@ const TranslatePage: React.FC = () => { loading, messages, postChat, + continueGeneration, clear: clearChat, updateSystemContextByModel, + getStopReason, } = useChat(pathname); const { setTypingTextInput, typingTextOutput } = useTyping(loading); const { modelIds: availableModels } = MODELS; @@ -113,6 +115,7 @@ const TranslatePage: React.FC = () => { const prompter = useMemo(() => { return getPrompter(modelId); }, [modelId]); + const stopReason = getStopReason(); const [auto, setAuto] = useLocalStorageBoolean('Auto_Translate', true); const [audio, setAudioInput] = useState(false); // 音声入力フラグ @@ -340,6 +343,10 @@ const TranslatePage: React.FC = () => {
+ {stopReason === 'max_tokens' && ( + + )} +