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

1.5.4 #485

Merged
merged 8 commits into from
Mar 9, 2025
Merged

1.5.4 #485

merged 8 commits into from
Mar 9, 2025

Conversation

n4ze3m
Copy link
Owner

@n4ze3m n4ze3m commented Mar 8, 2025

  • fix: Model Nickname bug Model Nickname bug #483
  • feat: All system prompts now supports date time key
  • feat: copy button to user messages
  • feat: Add option for user chat bubbles

n4ze3m added 3 commits March 8, 2025 14:25
… retrieval

This commit addresses two issues:

1.  **ModelNicknameModal dependency array:** The dependency array in `ModelNicknameModal.tsx` was updated to include `model_id`. This ensures that the effect hook correctly re-runs when the `model_id` changes, preventing potential issues with stale data.
2.  **Nickname retrieval simplification:** The code in `src/db/nickname.ts` was simplified by removing redundant initialization. The `modelNames` variable is now directly assigned the result of `this.db.get(this.KEY)`, improving readability and efficiency.
This commit replaces the direct instantiation of `SystemMessage` with the `systemPromptFormatter` function in `useMessageOption.tsx` and `useMessage.tsx`. This change ensures that system prompts are properly formatted before being added to the chat history.

The `systemPromptFormatter` function is also added as a dependency to the `useMessageOption.tsx` and `useMessage.tsx` files.

Additionally, the `nickname.ts` file was updated to remove a commented-out line.
Copy link

cloudflare-workers-and-pages bot commented Mar 8, 2025

Deploying page-assist with  Cloudflare Pages  Cloudflare Pages

Latest commit: d5fad55
Status: ✅  Deploy successful!
Preview URL: https://8853cc22.page-assist.pages.dev
Branch Preview URL: https://next.page-assist.pages.dev

View logs

…arious locales

This commit renames the "Open Copilot to Chat" string to "Open Side Panel to Chat" in the following language files:

- src/public/_locales/de/messages.json
- src/public/_locales/en/messages.json
- src/public/_locales/es/messages.json
- src/public/_locales/fa/messages.json
- src/public/_locales/fr/messages.json
- src/public/_locales/it/messages.json
- src/public/_locales/ja/messages.json
- src/public/_locales/no/messages.json
- src/public/_locales/ru/messages.json
- src/public/_locales/sv/messages.json
- src/public/_locales/zh_CN/messages.json

This change improves clarity and consistency across the application by reflecting the actual UI element being opened.
This commit introduces a new setting that allows users to display their messages in a chat bubble format. This improves the visual distinction between user and bot messages, enhancing the overall chat experience.

The following changes were made:

-   Added a "User Chat Bubble" toggle to the general settings.
-   Implemented the chat bubble display in the `PlaygroundMessage` component.
-   Added translations for the new setting in all supported languages.
-   Updated the PlaygroundForm to use a different background color for the chat bubble.
@n4ze3m n4ze3m marked this pull request as ready for review March 9, 2025 14:59
This commit introduces support for variables within system prompts, allowing for dynamic content based on the current date and time. This enhances the flexibility and context-awareness of system prompts.

The following variables are now supported:

- `{current_date_time}`: The current date and time in local format.
- `{current_year}`: The current year.
- `{current_month}`: The current month (0-11).
- `{current_day}`: The current day of the month.
- `{current_hour}`: The current hour (0-23).
- `{current_minute}`: The current minute (0-59).

These variables are automatically replaced with their respective values when the prompt is sent to the LLM.
@n4ze3m n4ze3m merged commit 9afe72b into main Mar 9, 2025
4 checks passed
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