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.
✨ feat: support the auto create topic configuration (lobehub#490)
* ✨ feat: support the auto create topic configuration * 🐛 fix: fix the inbox session that not response on config * ♻️ refactor: rename the agentConfig folder to agent * 🎨 refactor: improve code * 🌐 chore: add i18n
- Loading branch information
Showing
34 changed files
with
201 additions
and
100 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
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
60 changes: 60 additions & 0 deletions
60
src/store/global/selectors/__snapshots__/settings.test.ts.snap
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,60 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`settingsSelectors > currentSettings > should merge DEFAULT_SETTINGS and s.settings correctly 1`] = ` | ||
{ | ||
"avatar": "avatar.jpg", | ||
"defaultAgent": { | ||
"config": { | ||
"autoCreateTopicThreshold": 2, | ||
"displayMode": "chat", | ||
"enableAutoCreateTopic": true, | ||
"historyCount": 1, | ||
"model": "gpt-3.5-turbo", | ||
"params": { | ||
"frequency_penalty": 0, | ||
"presence_penalty": 0, | ||
"temperature": 0.6, | ||
"top_p": 1, | ||
}, | ||
"plugins": [], | ||
"systemRole": "", | ||
"tts": { | ||
"showAllLocaleVoice": false, | ||
"sttLocale": "auto", | ||
"ttsService": "openai", | ||
"voice": { | ||
"openai": "alloy", | ||
}, | ||
}, | ||
}, | ||
"meta": { | ||
"avatar": "Default Agent", | ||
"description": "Default agent for testing", | ||
}, | ||
}, | ||
"fontSize": 14, | ||
"language": "en-US", | ||
"languageModel": { | ||
"openAI": { | ||
"OPENAI_API_KEY": "openai-api-key", | ||
"customModelName": undefined, | ||
"endpoint": "https://openai-endpoint.com", | ||
"models": [ | ||
"gpt-3.5-turbo", | ||
], | ||
}, | ||
}, | ||
"neutralColor": "sand", | ||
"password": "password123", | ||
"primaryColor": "blue", | ||
"themeMode": "light", | ||
"tts": { | ||
"openAI": { | ||
"sttModel": "whisper-1", | ||
"ttsModel": "tts-1", | ||
}, | ||
"sttAutoStop": true, | ||
"sttServer": "openai", | ||
}, | ||
} | ||
`; |
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
Oops, something went wrong.