feat: switch to generation model set default stop word (#1341)
This commit is contained in:
parent
695841a3cf
commit
a07a6d8c26
8 changed files with 83 additions and 17 deletions
|
|
@ -73,7 +73,7 @@ export const fetchPromptTemplate = ({
|
|||
modelName,
|
||||
hasSetDataSet,
|
||||
}: { appMode: string; mode: ModelModeType; modelName: string; hasSetDataSet: boolean }) => {
|
||||
return get<Promise<{ chat_prompt_config: ChatPromptConfig; completion_prompt_config: CompletionPromptConfig }>>('/app/prompt-templates', {
|
||||
return get<Promise<{ chat_prompt_config: ChatPromptConfig; completion_prompt_config: CompletionPromptConfig; stop: [] }>>('/app/prompt-templates', {
|
||||
params: {
|
||||
app_mode: appMode,
|
||||
model_mode: mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue