chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -25,12 +25,12 @@ import { InterruptMessageContent } from './interrupt-message-content';
|
||||
import styles from './index.module.less';
|
||||
|
||||
export const InterruptMessageBox: CustomComponent['MessageBox'] = props => {
|
||||
// 用户操作后文案,前端维护暂时状态,刷新消失
|
||||
// Copywriting after user operation, front-end maintenance temporary state, refresh and disappear
|
||||
const [actionText, setActionText] = useState('');
|
||||
|
||||
const { message, meta } = props;
|
||||
|
||||
// 不展示逻辑: 为历史消息、无action且不在最后一个group
|
||||
// Do not show logic: chat history, no action and not in the last group
|
||||
if (message._fromHistory || (!actionText && !meta.isFromLatestGroup)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ export const InterruptMessageContent: React.FC<{
|
||||
const { sendResumeMessage, stopResponding } =
|
||||
plugin.chatAreaPluginContext?.writeableAPI.message ?? {};
|
||||
|
||||
// 获取中断场景、续聊id
|
||||
// Get interrupt scene, continue chat id
|
||||
const toolCall =
|
||||
interruptMessage.required_action?.submit_tool_outputs?.tool_calls?.[0];
|
||||
|
||||
|
||||
@@ -24,12 +24,12 @@ interface GetPositionProps {
|
||||
}
|
||||
|
||||
export const useGetPosition = ({ getPositionSuccess }: GetPositionProps) => {
|
||||
// 位置授权按钮loading态
|
||||
// Position authorization button loading state
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const getSysPosition = () => {
|
||||
setLoading(true);
|
||||
/** 获取系统地理位置信息 */
|
||||
/** Acquire system location information */
|
||||
if (navigator.geolocation) {
|
||||
navigator.geolocation.getCurrentPosition(
|
||||
position => {
|
||||
|
||||
Reference in New Issue
Block a user