forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: refactor the setting storage from localStorage to indexe…
…dDB (lobehub#1180) * 🚧 wip: add user schema * ♻️ refactor: refactor the copy with new api * ♻️ refactor: refactor a preference slice * ♻️ refactor: refactor the settings store * ✅ test: fix test * 🎨 chore: clean code * 🎨 chore: clean code * 🎨 chore: clean code * 🎨 chore: clean code * 🐛 fix: fix update default agent * 🐛 fix: fix update default agent
- Loading branch information
Showing
66 changed files
with
1,395 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/database/core/migrations/migrateSettingsToUser/fixtures/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"avatar": "", | ||
"defaultAgent": { | ||
"config": { | ||
"autoCreateTopicThreshold": 2, | ||
"displayMode": "chat", | ||
"enableAutoCreateTopic": true, | ||
"historyCount": 1, | ||
"model": "gpt-3.5-turbo-1106", | ||
"params": { | ||
"frequency_penalty": 0, | ||
"presence_penalty": 0, | ||
"temperature": 0.7, | ||
"top_p": 0.7 | ||
}, | ||
"plugins": ["website-crawler"], | ||
"systemRole": "", | ||
"tts": { | ||
"showAllLocaleVoice": false, | ||
"sttLocale": "auto", | ||
"ttsService": "openai", | ||
"voice": { "openai": "alloy" } | ||
}, | ||
"enableHistoryCount": true | ||
}, | ||
"meta": {} | ||
}, | ||
"fontSize": 14, | ||
"language": "auto", | ||
"languageModel": { | ||
"openAI": { | ||
"OPENAI_API_KEY": "dfdf", | ||
"models": [ | ||
"gpt-3.5-turbo", | ||
"gpt-3.5-turbo-1106", | ||
"gpt-3.5-turbo-16k", | ||
"gpt-4", | ||
"gpt-4-32k", | ||
"gpt-4-1106-preview", | ||
"gpt-4-vision-preview" | ||
], | ||
"customModelName": "+glm-4,+glm-4v", | ||
"endpoint": "sdaddsd" | ||
}, | ||
"zhipu": { "ZHIPU_API_KEY": "", "enabled": false } | ||
}, | ||
"password": "", | ||
"themeMode": "auto", | ||
"tool": { "dalle": { "autoGenerate": false } }, | ||
"tts": { | ||
"openAI": { "sttModel": "whisper-1", "ttsModel": "tts-1" }, | ||
"sttAutoStop": true, | ||
"sttServer": "openai" | ||
} | ||
} |
Oops, something went wrong.