Skip to content

Commit

Permalink
Moving forward we'll use /lib
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Mar 27, 2023
1 parent 6b96046 commit 5c6e1e9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import StopOutlinedIcon from '@mui/icons-material/StopOutlined';
import TelegramIcon from '@mui/icons-material/Telegram';

import { NoSSR } from './util/NoSSR';
import { useComposerStore } from '../utilities/store';
import { useSpeechRecognition } from '../utilities/useSpeechRecognition';
import { useComposerStore } from '../lib/store';
import { useSpeechRecognition } from '../lib/use-speech-recognition';


/// Text template helpers
Expand Down
4 changes: 2 additions & 2 deletions components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { shallow } from 'zustand/shallow';

import { Box, Button, Input, Modal, ModalClose, ModalDialog, Option, Select, Typography } from '@mui/joy';

import { ChatModelId, ChatModels } from '../utilities/data';
import { ChatModelId, ChatModels } from '../lib/data';
import { Link } from './util/Link';
import { NoSSR } from './util/NoSSR';
import { useSettingsStore } from '../utilities/store';
import { useSettingsStore } from '../lib/store';


export const isValidOpenAIApiKey = (apiKey?: string) =>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import SmartToyOutlinedIcon from '@mui/icons-material/SmartToyOutlined';
import SmartToyTwoToneIcon from '@mui/icons-material/SmartToyTwoTone';

import { ApiChatInput } from './api/chat';
import { ChatModels, SystemPurposeId, SystemPurposes } from '../utilities/data';
import { ChatModels, SystemPurposeId, SystemPurposes } from '../lib/data';
import { Composer } from '../components/Composer';
import { Message, UiMessage } from '../components/Message';
import { NoSSR } from '../components/util/NoSSR';
import { isValidOpenAIApiKey, Settings } from '../components/Settings';
import { useSettingsStore } from '../utilities/store';
import { useSettingsStore } from '../lib/store';


/// UI Messages configuration
Expand Down

0 comments on commit 5c6e1e9

Please sign in to comment.