Fix: prompt of expert mode (#3168)

This commit is contained in:
KVOJJJin 2024-04-08 21:36:27 +08:00 • committed by GitHub
commit d8db728c33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -1,6 +1,7 @@
/* eslint-disable import/no-mutable-exports */
import { InputVarType } from '@/app/components/workflow/types'
import { AgentStrategy } from '@/types/app'
import { PromptRole } from '@/models/debug'
export let apiPrefix = ''
export let publicApiPrefix = ''
@ -70,7 +71,12 @@ export const TONE_LIST = [
]
export const DEFAULT_CHAT_PROMPT_CONFIG = {
prompt: [],
prompt: [
{
role: PromptRole.system,
text: '',
},
],
}
export const DEFAULT_COMPLETION_PROMPT_CONFIG = {