diff --git a/public/openai-up.ico b/public/openai-up.ico
new file mode 100644
index 0000000..fbcfb14
Binary files /dev/null and b/public/openai-up.ico differ
diff --git a/src/biz/Body.tsx b/src/biz/Body.tsx
index 2f036a5..c41051f 100644
--- a/src/biz/Body.tsx
+++ b/src/biz/Body.tsx
@@ -18,6 +18,7 @@ import {
AiOutlineCloseCircle,
BsDashSquare,
BsPlusSquare,
+ FaGripfire,
FaQuestion,
FaRegArrowAltCircleDown,
IoWarning,
@@ -71,7 +72,7 @@ const Body = () => {
const title = useAppSelector(state => state.env.title)
const fontSize = useAppSelector(state => state.env.envData.fontSize)
const searchText = useAppSelector(state => state.env.searchText)
- const recommendIdx = useMemo(() => random(0, 2), [])
+ const recommendIdx = useMemo(() => random(0, 3), [])
const showSearchInput = useMemo(() => {
return (segments != null && segments.length > 0) && (envData.searchEnabled ? envData.searchEnabled : (envData.askEnabled ?? ASK_ENABLED_DEFAULT))
}, [envData.askEnabled, envData.searchEnabled, segments])
@@ -209,7 +210,7 @@ const Body = () => {
// 自动滚动
useEffect(() => {
if (checkAutoScroll && curOffsetTop && autoScroll && !needScroll) {
- if (bodyRef.current.scrollTop <= curOffsetTop - bodyRef.current.offsetTop - (totalHeight-120) + (floatKeyPointsSegIdx != null ? 100 : 0) ||
+ if (bodyRef.current.scrollTop <= curOffsetTop - bodyRef.current.offsetTop - (totalHeight-160) + (floatKeyPointsSegIdx != null ? 100 : 0) ||
bodyRef.current.scrollTop >= curOffsetTop - bodyRef.current.offsetTop - 40 - 10
) {
dispatch(setNeedScroll(true))
@@ -348,6 +349,11 @@ const Body = () => {
e.preventDefault()
openUrl('https://microsoftedge.microsoft.com/addons/detail/galeejdehabppfgooagmkclpppnbccpc')
}} className='link text-sm text-accent'>Edge商店
+ {
+ e.preventDefault()
+ openUrl('https://www.crxsoso.com/webstore/detail/fiaeclpicddpifeflpmlgmbjgaedladf')
+ }} className='link text-sm text-accent'>Crx搜搜(国内可访问)
}
@@ -371,7 +383,7 @@ const Body = () => {
- {recommendIdx === 0 &&
+ {recommendIdx === 0 &&
}
+ {recommendIdx === 3 &&
}
}
diff --git a/src/biz/Settings.tsx b/src/biz/Settings.tsx
index f42ba11..dd662cf 100644
--- a/src/biz/Settings.tsx
+++ b/src/biz/Settings.tsx
@@ -13,7 +13,6 @@ import {
PAGE_MAIN,
PROMPT_DEFAULTS,
PROMPT_TYPES,
- SERVER_URL_THIRD,
SUMMARIZE_LANGUAGE_DEFAULT,
TRANSLATE_FETCH_DEFAULT,
TRANSLATE_FETCH_MAX,
@@ -21,7 +20,7 @@ import {
TRANSLATE_FETCH_STEP,
WORDS_RATE,
} from '../const'
-import {IoWarning} from 'react-icons/all'
+import {FaGripfire, IoWarning} from 'react-icons/all'
import classNames from 'classnames'
import toast from 'react-hot-toast'
import {useBoolean, useEventTarget} from 'ahooks'
@@ -210,7 +209,7 @@ const Settings = () => {
-
+
@@ -220,35 +219,41 @@ const Settings = () => {
{(!aiTypeValue || aiTypeValue === 'openai') &&
-
+
- setServerUrlValue(e.target.value)}/>
+ setServerUrlValue(e.target.value)}/>
-
-
{moreFold?'点击查看说明':'点击折叠说明'}
+
+
+
【官方地址】
+
+
+
【第三方代理】
+
+
+
目前价格不到官方价格的6折
+
- {!moreFold &&
}
-
{!promptsFold &&
{PROMPT_TYPES.map((item, idx) =>
@@ -257,16 +262,18 @@ const Settings = () => {
setPromptsValue({
...promptsValue,
// @ts-expect-error
- [item.type]: PROMPT_DEFAULTS[item.type]??''
+ [item.type]: PROMPT_DEFAULTS[item.type] ?? ''
})
- }}>点击填充默认
+ }}>点击填充默认
+
} htmlFor={`prompt-${item.type}`}>
- )}
}
}
@@ -276,15 +283,14 @@ const Settings = () => {
-
-
{moreFold ? '点击查看说明' : '点击折叠说明'}
+
+
+
+
谷歌模型安全要求比较高,有些视频可能无法生成总结!
+
- {!moreFold &&
}
{promptsFold ? '点击查看提示词' : '点击折叠提示词'}
diff --git a/src/const.tsx b/src/const.tsx
index 6756274..9a63dd2 100644
--- a/src/const.tsx
+++ b/src/const.tsx
@@ -170,7 +170,6 @@ export const SUMMARIZE_LANGUAGE_DEFAULT = 'cn'
export const SUMMARIZE_ALL_THRESHOLD = 5
export const ASK_ENABLED_DEFAULT = true
export const SERVER_URL_OPENAI = 'https://api.openai.com'
-export const SERVER_URL_THIRD = 'https://op.kongkongye.com'
export const MODELS = [{
code: 'gpt-3.5-turbo',