mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
commit
6d96be2ca6
@ -87,7 +87,7 @@ CMD if [ -n "$PROXY_URL" ]; then \
|
|||||||
echo "[ProxyList]" >> $conf; \
|
echo "[ProxyList]" >> $conf; \
|
||||||
echo "$protocol $host $port" >> $conf; \
|
echo "$protocol $host $port" >> $conf; \
|
||||||
cat /etc/proxychains.conf; \
|
cat /etc/proxychains.conf; \
|
||||||
proxychains -f $conf "node server.js --host 0.0.0.0"; \
|
proxychains -f $conf node server.js --host 0.0.0.0; \
|
||||||
else \
|
else \
|
||||||
node server.js; \
|
node server.js; \
|
||||||
fi
|
fi
|
||||||
|
@ -59,13 +59,15 @@ export default function VoiceInput({
|
|||||||
if (!userInput || userInput.trim() === "") {
|
if (!userInput || userInput.trim() === "") {
|
||||||
setTempUserInput("");
|
setTempUserInput("");
|
||||||
setVoiceInputText("");
|
setVoiceInputText("");
|
||||||
|
recognizer.current?.close();
|
||||||
|
recognizer.current = undefined;
|
||||||
|
setVoiceInputLoading(false);
|
||||||
} else {
|
} else {
|
||||||
if (!/\[\.\.\.\]$/.test(userInput)) {
|
if (!/\[\.\.\.\]$/.test(userInput)) {
|
||||||
setTempUserInput(userInput);
|
setTempUserInput(userInput);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [userInput]);
|
}, [userInput]);
|
||||||
useEffect(() => {}, [tempUserInput]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (voiceInputText.trim() !== "") {
|
if (voiceInputText.trim() !== "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user