Skip to content

Commit

Permalink
dependencies update + build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandostaler committed Apr 2, 2024
1 parent 923ebde commit 6291df0
Show file tree
Hide file tree
Showing 7 changed files with 3,030 additions and 2,399 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 21
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 21
node-version: 18

- name: Install dependencies
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 21
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 21
node-version: 18

- name: Install dependencies
run: yarn
Expand Down
7 changes: 3 additions & 4 deletions src/components/Chat/ChatContent/ScrollToBottomButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ const ScrollToBottomButton = React.memo(() => {

return (
<button
className={`cursor-pointer absolute right-6 bottom-[60px] md:bottom-[60px] z-10 rounded-full border border-gray-200 bg-gray-50 text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200 ${
atBottom ? 'hidden' : ''
}`}
onClick={scrollToBottom}
className={`cursor-pointer absolute right-6 bottom-[60px] md:bottom-[60px] z-10 rounded-full border border-gray-200 bg-gray-50 text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200 ${atBottom ? 'hidden' : ''
}`}
onClick={(e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => scrollToBottom()}
>
<DownArrow />
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/store/auth-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defaultAPIEndpoint } from '@constants/auth';
import { StoreSlice } from './store';

export interface AuthSlice {
apiKey?: string;
apiKey: string;
apiEndpoint: string;
orgId: string;
availableOrgIds: string[];
Expand All @@ -15,7 +15,7 @@ export interface AuthSlice {
}

export const createAuthSlice: StoreSlice<AuthSlice> = (set, get) => ({
apiKey: import.meta.env.VITE_OPENAI_API_KEY || undefined,
apiKey: import.meta.env.VITE_OPENAI_API_KEY || '',
orgId: '',
availableOrgIds: [''],
apiEndpoint: defaultAPIEndpoint,
Expand Down
3 changes: 2 additions & 1 deletion src/store/chat-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChatInterface, FolderCollection, MessageInterface } from '@type/chat';

export interface ChatSlice {
messages: MessageInterface[];
chats?: ChatInterface[];
chats: ChatInterface[];
currentChatIndex: number;
generating: boolean;
error: string;
Expand All @@ -18,6 +18,7 @@ export interface ChatSlice {

export const createChatSlice: StoreSlice<ChatSlice> = (set, get) => ({
messages: [],
chats: [],
currentChatIndex: -1,
generating: false,
error: '',
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@
"@openai_function_calling_tools/*": [
"./src/openai_function_calling_tools/*"
]
},
"typeRoots": [
"./node_modules/@types",
"./src/types",
"./src/store"
],
}
},
"include": [
"src",
Expand Down
5,400 changes: 3,018 additions & 2,382 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 6291df0

Please sign in to comment.