chore: remove强制设置

This commit is contained in:
liuweiqing 2024-04-16 14:34:59 +08:00
parent b3c8dc1d4a
commit dba8ec332a

View File

@ -249,10 +249,10 @@ const QEditor = ({ lng }) => {
} }
}, []); }, []);
// 强制更新为我设置的API // 强制更新为我设置的API
useEffect(() => { // useEffect(() => {
dispatch(setApiKey("sk-GHuPUV6ERD8wVmmr36FeB8D809D34d93Bb857c009f6aF9Fe")); // dispatch(setApiKey("sk-GHuPUV6ERD8wVmmr36FeB8D809D34d93Bb857c009f6aF9Fe"));
dispatch(setUpsreamUrl("https://one.paperai.life")); // dispatch(setUpsreamUrl("https://one.paperai.life"));
}); // });
const handleTextChange = debounce(async function (delta, oldDelta, source) { const handleTextChange = debounce(async function (delta, oldDelta, source) {
if (source === "user") { if (source === "user") {
// 获取编辑器内容 // 获取编辑器内容