Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ caching and skeletons 2 #130

Merged
merged 3 commits into from
Dec 12, 2023
Merged

✨ caching and skeletons 2 #130

merged 3 commits into from
Dec 12, 2023

Conversation

hyusap
Copy link
Collaborator

@hyusap hyusap commented Dec 12, 2023

also fixes dark mode typing

addresses #123

Screen.Recording.2023-12-11.at.5.11.06.PM.mov

Copy link

vercel bot commented Dec 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tutor-gpt ✅ Ready (Inspect) Visit Preview Dec 12, 2023 5:49pm

@VVoruganti VVoruganti merged commit 40c0a5a into staging Dec 12, 2023
6 checks passed
VVoruganti added a commit that referenced this pull request Dec 12, 2023
* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

* Http error handling (#129)

* upgrade openai and langchain

Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>

* extend supabase timeout

* Handle moderation errors + other streaming errors explicitly

* Streaming error handling

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ caching and skeletons 2 (#130)

* ✨ caching and skeletons

* 🐛 fix the swr revalidation errors

* 💄 fix dark mode typing indicator

* Changelogs (#131)

* Tutor-GPT 0.5.0 (#124)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Changelogs

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>
VVoruganti added a commit that referenced this pull request Dec 20, 2023
* 0.5.1 (#132)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

* Http error handling (#129)

* upgrade openai and langchain

Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>

* extend supabase timeout

* Handle moderation errors + other streaming errors explicitly

* Streaming error handling

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ caching and skeletons 2 (#130)

* ✨ caching and skeletons

* 🐛 fix the swr revalidation errors

* 💄 fix dark mode typing indicator

* Changelogs (#131)

* Tutor-GPT 0.5.0 (#124)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Changelogs

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Enforce no anonymous users (#133)

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>
VVoruganti added a commit that referenced this pull request Dec 20, 2023
* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

* Http error handling (#129)

* upgrade openai and langchain

Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>

* extend supabase timeout

* Handle moderation errors + other streaming errors explicitly

* Streaming error handling

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ caching and skeletons 2 (#130)

* ✨ caching and skeletons

* 🐛 fix the swr revalidation errors

* 💄 fix dark mode typing indicator

* Changelogs (#131)

* Tutor-GPT 0.5.0 (#124)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Changelogs

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* 🐛 hotfix thought glitch (#136)

* Simple change to add next static export for local testing (#135)

* Re-sync staging with main  (#134)

* 0.5.1 (#132)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

* Http error handling (#129)

* upgrade openai and langchain

Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>

* extend supabase timeout

* Handle moderation errors + other streaming errors explicitly

* Streaming error handling

* ✨ caching and skeletons (#127)

* Revert "✨ caching and skeletons (#127)"

This reverts commit 15e649e.

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ caching and skeletons 2 (#130)

* ✨ caching and skeletons

* 🐛 fix the swr revalidation errors

* 💄 fix dark mode typing indicator

* Changelogs (#131)

* Tutor-GPT 0.5.0 (#124)

* Tracing (#60)

* Tracing to separate conversations

* Basic Postgres Connection via Supabase

* MVP Postgres Backed Chat Message History

* Full binary install or psycopg3

* Use Supabase directly to avoid issues with postgres connections

* .env.template update

* 0.3.0 Long Term Memory (#62)

* Add reply to discord and limit chat history to 10 messages

* reverse returned messages and cleanup comments

* Update changelog

* increase cache limit

* Switch to Azure OpenAI

* Changelog

* fix: update link to more recent blog post

* Sanitize thoughts before sending them in the thought's channel (#65)

* LayeredLRU Cache (#69)

* Make BloomChain a static class

* MVP Layered LRU Cache using Postgres

* Remove testing variables

* Async Mutex Lock on Cache

* Stateless bug (#70)

* Dynamic model switching

* Fix hardcoding and add recovery logic for conversation tables

* Add support for multiple conversations

* Fix merge errors

* Fix merge errors 2

* fix: top_p 0.5 to address gibberish

* Custom Web UI (#76)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Fix Github Action Workflow

* Fix Github Action Workflow

* add user prediction function

* Honcho Changes (#77)

* init nextjs

* fast api init

* styling and thoughts

* streaming updates

* connect to api

* Add thoughts to the web UI

* Refactor input to be a form for UX (e.g. pressing enter sends)

* typing and thoughts

* Refactor input to be a form for UX (e.g. pressing enter sends)

* Revert "Merge remote-tracking branch 'origin/custom-web' into custom-web"

This reverts commit 1eae747.

* Skeleton Multiple Chat Window UI

* MVP Layout

* Tested Discord and Skeleton FastAPI

* Add, Delete, and Set Conversations

* Get and send messages

* Edit message names

* Local serving from FastAPI via static export

* Deployment strategy for static files

* Separate out apps

* Vercel Deployment with Action

* Re-add discord to fly.toml

* Honcho Stream

* Honcho Stream

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: Jacob Van Meter <jacobvm04@gmail.com>

* Social Graph Changes

* Authentication Form Styling

* Working Auth

* Stylistic changes

* Address all linting errors

* Naive Route Protection

* Fly minimum machines

* Open Graph Image Changes

* Remove anonymous honcho usage, fix opengraph (#80)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* UI tweaks (#81)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* UI tweaks (#82)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Open Graph Fix

* Remove Streamlit

* UI tweaks (#84)

* Remove anonymous honcho usage, fix opengraph

* Remove extra excess logging and comment

* I hate typescript

* Open Graph, Block chat, delete convo

* Sign Up UI

* Sign Up UI 2

* Change open graph image

* Remove native prompts for sweetalert

* Changelog

* Remove Honcho for discord

* Web fixes (#89)

* seperation between sidebar and window + formatting

* make app pwa downloadable

* move to new chat on button press

* remove router

* feat: Refactor code to use MarkdownWrapper component

- Refactored the code in the `Home` component to replace usages of `ReactMarkdown` and `SyntaxHighlighter` with the new `MarkdownWrapper` component.
- Updated the `Home` component to pass the `text` prop to the `MarkdownWrapper` component for each message.
- Added a new component `MarkdownWrapper` to handle rendering markdown text with syntax highlighting.
- Removed unused imports from the `page.tsx` file, including `ReactMarkdown`, `SyntaxHighlighter`, and `dark` styles.
- Also removed unused imports from the `sidebar.tsx` file, including `useState` import.

* Optimization (#96)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Optimization (#98)

* Usable without honcho and move metadata to creation points

* Remove unused psycopg code

* Add Sentry instrumentation

* Sentry to python

* Update env

* Sentry & Posthog integration on web

* Linting Errors

* add latex support and incentive it (#104)

* prevent unallowed messages (#111)

* implement autoscroll (#112)

* implement autoscroll
Refactored imports in "page.tsx" to improve readability and maintainability. Updated the type of the "input" ref to be more specific. Added a new state and ref to track the scroll position of the message container. Set up an event listener to update the state when the scroll position changes. Made adjustments to the scroll position in certain event handlers.

* update scroll

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ add multiline support (#118)

* ♻️ refactor all of the api stuff (#119)

* ♻️ refactor all of the api stuff

a redo of the old refactor branch, but cleaner.
moved all api calls to api.ts and supabase.ts

* Minor Bug Fixes

- Add `build-essential` to dockerfile
- Fix signin button size
- Add await for signout
- Force re-render on conversation name change

---------

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* ✨ implement dark mode (#120)

automatically check for system mode
manual control via animated thingy

Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>

* Documentation (#121)

* README update and start of supabase plus making next buildable

* Supabase Local Setup and README additions

* Update web .env template and note on supabase local auth

* Force redirect for unauthenticated and add posthog events (#122)

* Update version

* Static banner

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Changelogs

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Enforce no anonymous users (#133)

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>

* Remove revalidation on focus (#137)

* Remove revalidation on focus

* Add PostHog Provider back for production

---------

Co-authored-by: vintro <vince@plasticlabs.ai>
Co-authored-by: Jacob Vanmeter <jacobvm04@gmail.com>
Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <77507980+vintrocode@users.noreply.github.com>
@VVoruganti VVoruganti deleted the caching branch September 2, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants