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

Adding Yep Chat in Taktak #1

Draft
wants to merge 33 commits into
base: tt/develop
Choose a base branch
from
Draft

Conversation

nyinyithann
Copy link
Collaborator

This PR mainly about adding Yep Chat in Taktak.

This commit introduces a toolbar button that allows users to toggle the visibility of the chat side panel.  The button provides a visual cue by highlighting with a rounded background when the chat panel is active.
…nel can be toggled from the toolbar and displays AI chat alongside current web content.
…so it can be localized into different languages.
Deleted ChatContextObserver class and its dependencies to simplify codebase. Adjusted related headers and implementation files to reflect the removal, and corrected remaining references and comments accordingly.
Implemented different prompts for chat actions: summarize page, explain page, and fact check page. Updated function signatures and button click handlers to utilize the new action-specific prompts.
Previously, the full content was passed to the query without length restriction, which could cause issues. Now, the content is truncated to a maximum of 32768 tokens to ensure it adheres to the defined limit.
Enhanced the chat panel to conditionally display site information for specific actions such as summarizing, explaining, or drafting social media posts. This includes new CSS for layout, updated TypeScript logic to manage data handling, and HTML changes to render site details when necessary.
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.

1 participant