Compare commits

3 Commits

Author SHA1 Message Date
ChenZhaoYu
8fad91ade7 chore: v2.10.7 2023-03-17 11:43:42 +08:00
ChenZhaoYu
560378fd45 fix: 添加 usingContext 缺省 2023-03-17 11:40:05 +08:00
ChenZhaoYu
95ce026813 fix: 回退 chatgpt 版本导致的代理失效 2023-03-17 11:37:33 +08:00
5 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,11 @@
## v2.10.7
`2023-03-17`
## BugFix
- 回退 `chatgpt` 版本,原因:导致 `OPENAI_API_BASE_URL` 代理失效
- 修复缺省状态的 `usingContext` 默认值
## v2.10.6
`2023-03-17`

View File

@@ -1,6 +1,6 @@
{
"name": "chatgpt-web",
"version": "2.10.6",
"version": "2.10.7",
"private": false,
"description": "ChatGPT Web",
"author": "ChenZhaoYu <chenzhaoyu1994@gmail.com>",

View File

@@ -25,7 +25,7 @@
},
"dependencies": {
"axios": "^1.3.4",
"chatgpt": "^5.1.1",
"chatgpt": "^5.0.10",
"dotenv": "^16.0.3",
"esno": "^0.16.3",
"express": "^4.18.2",

View File

@@ -5,7 +5,7 @@ specifiers:
'@types/express': ^4.17.17
'@types/node': ^18.14.6
axios: ^1.3.4
chatgpt: ^5.1.1
chatgpt: ^5.0.10
dotenv: ^16.0.3
eslint: ^8.35.0
esno: ^0.16.3
@@ -20,7 +20,7 @@ specifiers:
dependencies:
axios: 1.3.4
chatgpt: 5.1.1
chatgpt: 5.0.10
dotenv: 16.0.3
esno: 0.16.3
express: 4.18.2
@@ -920,8 +920,8 @@ packages:
resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==}
dev: true
/chatgpt/5.1.1:
resolution: {integrity: sha512-ml1u4/KqXdAKfaRwqE0uvRTh5JoRgosstH2LF4PpsawG7MUtIzAVaE/MMEAaV02uGbOlAH4IgKI3mDHkQ0Dmlw==}
/chatgpt/5.0.10:
resolution: {integrity: sha512-R3vtPlhCapFLkDXED0Cnt1DBcOZAXygr0M5U5kbSI0Fwm4uDQmc7qoIOnr17rd8eaa0JO/UDOevJdEWvd079qA==}
engines: {node: '>=14'}
hasBin: true
dependencies:

View File

@@ -14,7 +14,7 @@ export function defaultState(): Chat.ChatState {
export function getLocalState(): Chat.ChatState {
const localState = ss.get(LOCAL_NAME)
return localState ?? defaultState()
return { ...defaultState(), ...localState }
}
export function setLocalState(state: Chat.ChatState) {