4.8.10 test fix (#2517)

* fix: chat config load error

* prompt perf
This commit is contained in:
Archer 2024-08-26 14:26:45 +08:00 committed by GitHub
parent a1a9a0b463
commit f7544ea47b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@ export const Prompt_AgentQA = {
-
- Markdown
- 50
-
`,
fixedText: `请按以下格式整理学习成果:
<Context>

View File

@ -50,9 +50,11 @@ export const getAppLatestVersion = async (appId: string, app?: AppSchema) => {
const version = await MongoAppVersion.findOne({
appId,
isPublish: true
}).sort({
time: -1
});
})
.sort({
time: -1
})
.lean();
if (version) {
return {