Skip to content

Commit

Permalink
feat: add dotenv package to support max file size.
Browse files Browse the repository at this point in the history
  • Loading branch information
guangzhengli committed Apr 11, 2023
1 parent 085d271 commit bce3e30
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chatfiles-ui/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,11 @@ export const Chat: FC<Props> = memo(
{CHAT_FILES_MAX_SIZE != 0 &&
<>
<p className="mt-2 px-8 text-xs text-gray-500 dark:text-gray-400">This environment is only for trial and supports a maximum file size of {humanFileSize(CHAT_FILES_MAX_SIZE)}.</p>
<p className="mt-2 px-8 text-xs text-gray-500 dark:text-gray-400">Here are some good starting questions:
<a className="text-xs text-gray-500 dark:text-gray-400 underline" href="https://github.com/guangzhengli/ChatFiles/blob/dev/doc/Example.md"> Good Examples .</a>
</p>
<p className="mt-2 px-8 text-xs text-gray-500 dark:text-gray-400">If you need to upload larger files, please deploy your own chatfiles by:
<a className="text-xs text-gray-500 dark:text-gray-400 underline" href="https://github.com/guangzhengli/ChatFiles"> Chatfiles </a>
<a className="text-xs text-gray-500 dark:text-gray-400 underline" href="https://github.com/guangzhengli/ChatFiles"> Chatfiles .</a>
</p>
</>
}
Expand Down
9 changes: 9 additions & 0 deletions chatfiles-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions chatfiles-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@tabler/icons-react": "^2.9.0",
"dotenv": "^16.0.3",
"eventsource-parser": "^0.1.0",
"flowbite": "^1.6.4",
"formidable": "^2.1.1",
Expand Down
5 changes: 5 additions & 0 deletions chatfiles-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,11 @@ domexception@^4.0.0:
dependencies:
webidl-conversions "^7.0.0"

dotenv@^16.0.3:
version "16.0.3"
resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz"
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==

electron-to-chromium@^1.4.284:
version "1.4.341"
resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.341.tgz"
Expand Down

0 comments on commit bce3e30

Please sign in to comment.