Przeglądaj źródła

fix: typo of PublishConfig (#3540)

tags/0.6.4
Bowen Liang 1 rok temu
rodzic
commit
6269e011db
No account linked to committer's email address
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      web/app/components/app/configuration/index.tsx

+ 3
- 3
web/app/components/app/configuration/index.tsx Wyświetl plik

@@ -57,7 +57,7 @@ import { fetchCollectionList } from '@/service/tools'
import { type Collection } from '@/app/components/tools/types'
import { useStore as useAppStore } from '@/app/components/app/store'

type PublichConfig = {
type PublishConfig = {
modelConfig: ModelConfig
completionParams: FormValue
}
@@ -74,7 +74,7 @@ const Configuration: FC = () => {
const matched = pathname.match(/\/app\/([^/]+)/)
const appId = (matched?.length && matched[1]) ? matched[1] : ''
const [mode, setMode] = useState('')
const [publishedConfig, setPublishedConfig] = useState<PublichConfig | null>(null)
const [publishedConfig, setPublishedConfig] = useState<PublishConfig | null>(null)

const modalConfig = useMemo(() => appDetail?.model_config || {} as BackendModelConfig, [appDetail])
const [conversationId, setConversationId] = useState<string | null>('')
@@ -225,7 +225,7 @@ const Configuration: FC = () => {

const [isShowHistoryModal, { setTrue: showHistoryModal, setFalse: hideHistoryModal }] = useBoolean(false)

const syncToPublishedConfig = (_publishedConfig: PublichConfig) => {
const syncToPublishedConfig = (_publishedConfig: PublishConfig) => {
const modelConfig = _publishedConfig.modelConfig
setModelConfig(_publishedConfig.modelConfig)
setCompletionParams(_publishedConfig.completionParams)

Ładowanie…
Anuluj
Zapisz