feat: multiple model configuration (#2196)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
zxhlyh 2024-01-25 12:36:55 +08:00 committed by GitHub
commit d5361b8d09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 3209 additions and 188 deletions

View file

@ -1,4 +1,4 @@
import { createContext } from 'use-context-selector'
import { createContext, useContext } from 'use-context-selector'
import { PromptMode } from '@/models/debug'
import type {
AnnotationReplyConfig,
@ -239,4 +239,6 @@ const DebugConfigurationContext = createContext<IDebugConfiguration>({
setVisionConfig: () => { },
})
export const useDebugConfigurationContext = () => useContext(DebugConfigurationContext)
export default DebugConfigurationContext