mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 01:26:37 +08:00
@@ -351,7 +351,9 @@ export class ChatSessionService {
|
||||
|
||||
// render system prompt
|
||||
const preload = withPrompt
|
||||
? prompt.finish(ret.data[0]?.params || {})
|
||||
? prompt
|
||||
.finish(ret.data[0]?.params || {})
|
||||
.filter(({ role }) => role !== 'system')
|
||||
: [];
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user