Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fad91ade7 | ||
|
|
560378fd45 | ||
|
|
95ce026813 |
@@ -1,3 +1,11 @@
|
|||||||
|
## v2.10.7
|
||||||
|
|
||||||
|
`2023-03-17`
|
||||||
|
|
||||||
|
## BugFix
|
||||||
|
- 回退 `chatgpt` 版本,原因:导致 `OPENAI_API_BASE_URL` 代理失效
|
||||||
|
- 修复缺省状态的 `usingContext` 默认值
|
||||||
|
|
||||||
## v2.10.6
|
## v2.10.6
|
||||||
|
|
||||||
`2023-03-17`
|
`2023-03-17`
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "chatgpt-web",
|
"name": "chatgpt-web",
|
||||||
"version": "2.10.6",
|
"version": "2.10.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "ChatGPT Web",
|
"description": "ChatGPT Web",
|
||||||
"author": "ChenZhaoYu <chenzhaoyu1994@gmail.com>",
|
"author": "ChenZhaoYu <chenzhaoyu1994@gmail.com>",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.3.4",
|
"axios": "^1.3.4",
|
||||||
"chatgpt": "^5.1.1",
|
"chatgpt": "^5.0.10",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"esno": "^0.16.3",
|
"esno": "^0.16.3",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
|
|||||||
8
service/pnpm-lock.yaml
generated
8
service/pnpm-lock.yaml
generated
@@ -5,7 +5,7 @@ specifiers:
|
|||||||
'@types/express': ^4.17.17
|
'@types/express': ^4.17.17
|
||||||
'@types/node': ^18.14.6
|
'@types/node': ^18.14.6
|
||||||
axios: ^1.3.4
|
axios: ^1.3.4
|
||||||
chatgpt: ^5.1.1
|
chatgpt: ^5.0.10
|
||||||
dotenv: ^16.0.3
|
dotenv: ^16.0.3
|
||||||
eslint: ^8.35.0
|
eslint: ^8.35.0
|
||||||
esno: ^0.16.3
|
esno: ^0.16.3
|
||||||
@@ -20,7 +20,7 @@ specifiers:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
axios: 1.3.4
|
axios: 1.3.4
|
||||||
chatgpt: 5.1.1
|
chatgpt: 5.0.10
|
||||||
dotenv: 16.0.3
|
dotenv: 16.0.3
|
||||||
esno: 0.16.3
|
esno: 0.16.3
|
||||||
express: 4.18.2
|
express: 4.18.2
|
||||||
@@ -920,8 +920,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==}
|
resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/chatgpt/5.1.1:
|
/chatgpt/5.0.10:
|
||||||
resolution: {integrity: sha512-ml1u4/KqXdAKfaRwqE0uvRTh5JoRgosstH2LF4PpsawG7MUtIzAVaE/MMEAaV02uGbOlAH4IgKI3mDHkQ0Dmlw==}
|
resolution: {integrity: sha512-R3vtPlhCapFLkDXED0Cnt1DBcOZAXygr0M5U5kbSI0Fwm4uDQmc7qoIOnr17rd8eaa0JO/UDOevJdEWvd079qA==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export function defaultState(): Chat.ChatState {
|
|||||||
|
|
||||||
export function getLocalState(): Chat.ChatState {
|
export function getLocalState(): Chat.ChatState {
|
||||||
const localState = ss.get(LOCAL_NAME)
|
const localState = ss.get(LOCAL_NAME)
|
||||||
return localState ?? defaultState()
|
return { ...defaultState(), ...localState }
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setLocalState(state: Chat.ChatState) {
|
export function setLocalState(state: Chat.ChatState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user