Skip to content

Commit

Permalink
style(chatbot-header.tsx): reorder imports for better readability
Browse files Browse the repository at this point in the history
style(chatbot-header.tsx): fix spacing and formatting issues for consistency
  • Loading branch information
anpigon committed Jul 7, 2024
1 parent 530124f commit 11390e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/chatbot/components/chatbot-header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {ReactNode, type ChangeEventHandler, type FC, type PropsWithChildren} from 'react';

import {ANTHROPIC_MODELS, LLM_PROVIDERS} from '@/constants';
import {ProviderModels} from '@/hooks/useEnabledModels';
import {Dropdown} from '@/components/form/dropdown';
import {ANTHROPIC_MODELS, LLM_PROVIDERS} from '@/constants';

interface ChatbotHeaderProps extends PropsWithChildren {
botName: string;
Expand Down Expand Up @@ -39,8 +39,8 @@ export const ChatbotHeader: FC<ChatbotHeaderProps> = ({botName, providers, disab
{providers
?.filter(({provider, models}) => models.length > 0)
.map(({provider, models}) => {
if(!models?.length) {
if(provider === LLM_PROVIDERS.ANTHROPIC) {
if (!models?.length) {
if (provider === LLM_PROVIDERS.ANTHROPIC) {
models = ANTHROPIC_MODELS;
}
}
Expand Down

0 comments on commit 11390e3

Please sign in to comment.