Переглянути джерело

Fix new variables in the conversation opener would override prompt_variables (#13191)

tags/0.15.3
HQidea 8 місяці тому
джерело
коміт
e8b3b7e578
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      web/app/components/app/configuration/index.tsx

+ 1
- 1
web/app/components/app/configuration/index.tsx Переглянути файл

@@ -491,7 +491,7 @@ const Configuration: FC = () => {
}, [formattingChangedDispatcher, setShowAppConfigureFeaturesModal])
const handleAddPromptVariable = useCallback((variable: PromptVariable[]) => {
const newModelConfig = produce(modelConfig, (draft: ModelConfig) => {
draft.configs.prompt_variables = variable
draft.configs.prompt_variables = [...draft.configs.prompt_variables, ...variable]
})
setModelConfig(newModelConfig)
}, [modelConfig])

Завантаження…
Відмінити
Зберегти