This commit is contained in:
parent
447ff68d82
commit
c7208f0680
|
|
@ -35,12 +35,13 @@ export const ChatSettingsForm: FC<ChatSettingsFormProps> = ({
|
|||
useAdvancedDropdown = true,
|
||||
showTooltip = true
|
||||
}) => {
|
||||
|
||||
const { t } = useTranslation()
|
||||
|
||||
const { profile, models } = useContext(ChatbotUIContext)
|
||||
|
||||
if (!profile) return null
|
||||
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
<div className="space-y-1">
|
||||
|
|
@ -101,6 +102,9 @@ const AdvancedContent: FC<AdvancedContentProps> = ({
|
|||
onChangeChatSettings,
|
||||
showTooltip
|
||||
}) => {
|
||||
|
||||
const { t } = useTranslation()
|
||||
|
||||
const { profile, selectedWorkspace, availableOpenRouterModels, models } =
|
||||
useContext(ChatbotUIContext)
|
||||
|
||||
|
|
@ -119,8 +123,6 @@ const AdvancedContent: FC<AdvancedContentProps> = ({
|
|||
findOpenRouterModel(chatSettings.model)?.maxContext || 4096
|
||||
}
|
||||
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<div className="mt-5">
|
||||
<div className="space-y-3">
|
||||
|
|
|
|||
Loading…
Reference in New Issue