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