Commit Graph

15 Commits

Author SHA1 Message Date
Enrico Ros 7574fea434 Resolved merge conflict. 2023-04-02 23:58:32 -07:00
fredliubojin 421e06e617 Using pdfjs-dist to parse and load pdf contents. 2023-04-02 23:37:23 -07:00
Enrico Ros ee0efdea1f Markdown rendering. Closes #46. See #11.
Will be soon turned on by default, when the CSS and rendering is
of higher quality (right now making it default will make
non-Markdown chats look quite different).

Thanks. Great stuff Nils (@nilshulth)
2023-04-02 23:36:34 -07:00
Enrico Ros d6215d021e Composer: show estimated tokens
Note: this feature uses @dqbd/tiktoken which in turns uses WebAssembly
to perform re-tokenization for every single character typed (there's
no reusing/smart caching of blocks). This may be super heavy while being
super useful - we'll see what people say.

Note the usage of Async webAssembly is enabled in the 'webpack' config
within next.config.js.
2023-04-01 18:03:44 -07:00
Enrico Ros fe0255597b Roll packages 2023-03-30 05:56:54 -07:00
Enrico Ros f678a0d463 Remove Sandpack (code execution)
The package makes the App slower to load, and I am not
aware of people using the Code
Execution feature

If someone still wants it, we can quickly revert
this commit and add it back (or you can use an older
official/preview build on Vercel)
2023-03-30 05:54:14 -07:00
Enrico Ros 90b267a93b Config cleanup 2023-03-27 01:07:51 -07:00
Enrico Ros ce24209f73 Enable Vercel deployments to have analytics 2023-03-24 16:55:05 -07:00
Enrico Ros 4fbb884eba Roll packages 2023-03-24 16:51:17 -07:00
Enrico Ros 3e6bbd8fe8 Persisted State Store - enables better UX
Basic implementation using Zustand to store values. For now just the
ChatModel and the SystemPurpose that are currently active. This enables
app-wide synchronization and automated persistence. Meaning we can now
have settings (and in future conversations) which are persisted and
synchronized.

API keys have not been migrated yet, because we need to import them from
the existing localStorage key, for a smooth transition.
2023-03-22 00:29:51 -07:00
Enrico Ros 010b1b17cf Run TS/JS/HTML blocks
Warning: this adds 203kb of JS to the app, more than 4x'ing
the size of the app. Will remove if not worth it. Uses Sandpack
from Codesandbox.io, which stands up full execution environments
for the code.
2023-03-19 00:59:30 -07:00
Enrico Ros cd60c6cc27 Highlight Code blocks
Using prismjs, we add coloring of source code blocks, which
translates in 12k of additional code. But the eyes and mind
are so happy.
2023-03-19 00:53:52 -07:00
Enrico Ros d2a7082564 Add Application
NextJS, React, JoyUI (like MUI), application for self-hosted
Chat-like GPT use cases. Includes streaming of responses from
the Vercel edge runtimes.
2023-03-19 00:42:23 -07:00
Enrico Ros f646fca299 Remove template stuff 2023-03-19 00:24:09 -07:00
Enrico Ros 0b4646cd0a Create Next App 2023-03-18 23:54:30 -07:00