Skip to content

Commit

Permalink
fix: fix checks for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alashchev17 committed Jan 21, 2025
1 parent d9af615 commit 4e75cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useCapsForToolUse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export function useCapsForToolUse() {

const isMultimodalitySupportedForCurrentModel = useMemo(() => {
const models = caps.data?.code_chat_models;
if (!models) return false;
const item = models[currentModel];
const item = models?.[currentModel];
if (!item) return false;
if (!item.supports_multimodality) return false;
return true;
}, [caps.data?.code_chat_models, currentModel]);
Expand Down

0 comments on commit 4e75cb2

Please sign in to comment.