Skip to content

Commit 22ed06c

Browse files
committed
chore: add improved logic
1 parent 1e4ec53 commit 22ed06c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/masterbots.ai/components/routes/chat/chat-combobox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export function ChatCombobox() {
6262
const processingSelectionRef = React.useRef(false)
6363

6464
//? Group models by type and availability
65-
const { freeEnabledModels, paidEnabledModels, disabledModels } = groupModels(models)
65+
const { freeEnabledModels, paidEnabledModels, disabledModels } =
66+
groupModels(models)
6667

6768
const getButtonVariant = () => {
6869
if (isDeepThinking) return 'deepThinking'

apps/masterbots.ai/components/routes/chat/chat-panel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Button } from '@/components/ui/button'
99
import { IconShare, IconStop } from '@/components/ui/icons'
1010
import { useContinueGeneration } from '@/lib/hooks/use-continue-generation'
1111
import { useDeepThinking } from '@/lib/hooks/use-deep-thinking'
12+
import { useImageGeneration } from '@/lib/hooks/use-image'
1213
import { useMBChat } from '@/lib/hooks/use-mb-chat'
1314
import { usePowerUp } from '@/lib/hooks/use-power-up'
1415
import { useThread } from '@/lib/hooks/use-thread'
@@ -25,7 +26,6 @@ import {
2526
import { appConfig } from 'mb-env'
2627
import type { Chatbot } from 'mb-genql'
2728
import { useCallback, useState } from 'react'
28-
import { useImageGeneration } from '@/lib/hooks/use-image'
2929

3030
export interface ChatPanelProps
3131
extends Pick<
@@ -63,7 +63,8 @@ export function ChatPanel({
6363
const { isOpenPopup, loadingState, webSearch, setWebSearch } = useThread()
6464
const { isPowerUp, togglePowerUp } = usePowerUp()
6565
const { isDeepThinking, toggleDeepThinking } = useDeepThinking()
66-
const { isImageGenerationEnabled, toggleImageGeneration } = useImageGeneration()
66+
const { isImageGenerationEnabled, toggleImageGeneration } =
67+
useImageGeneration()
6768
const [shareDialogOpen, setShareDialogOpen] = useState(false)
6869
const {
6970
getContinuationPrompt,

0 commit comments

Comments
 (0)