Commit graph

510 commits

Author SHA1 Message Date
TamHC
3edafd0503 adding new features & layouts
1. Update suggestionGeneratorAgent.ts
- Match the suggestions to user's language

2. Add incognito mode
- Allow user to switch on / off incognito mode by webpage toggle or url parameter
- URL Parameter Control
 - Accessing `/?incognito=true` automatically enables incognito mode
 - Accessing `/?incognito=false` or without parameters will use normal mode

3. Add the history retention feature
- Allow users to set history retention days through config.toml or API endpoints, as well as on the settings page.

4. Add layout mode: Default / Tabs
- Allow users to change default layout mode through config.toml
- Allow users to customize layout mode for each browser through setting page

5. Allow users to change webpage theme by system detection
2025-06-24 22:10:59 +08:00
TamHC
39bde37a03
Update sample.config.toml
add setting of layout mode & history retention days
2025-06-24 21:35:46 +08:00
TamHC
ad8ea4acd6
allow changing theme by system detection
### 1. Updated Theme Provider (`src/components/theme/Provider.tsx`)

- Enabled system theme support by setting `enableSystem={true}`
- Changed default theme from "dark" to "system" so the app follows the user's system preference by default

### 2. Updated Theme Switcher (`src/components/theme/Switcher.tsx`)

- Added "System" option to the theme dropdown menu alongside "Light" and "Dark"
- Removed the custom system theme detection logic that was interfering with next-themes' built-in system detection
- Simplified the component to rely on next-themes' native system theme handling
2025-06-24 21:00:31 +08:00
TamHC
88ab31e820
add layout choice 2025-06-24 20:45:25 +08:00
TamHC
0668c4d8b8
add more appearance setting 2025-06-24 20:42:39 +08:00
TamHC
883e457009
implemented the history retention feature
### 1. __History Retention Configuration__

- __config.toml__: Added `[HISTORY]` section with `RETENTION_DAYS = 30` setting
- __Backend Integration__: Updated configuration handling to support history retention
- __API Endpoints__: Modified `/api/config` to read/write history retention settings

### 2. __User Interface__

- __Settings Page__: Added "History Settings" section with number input for retention days
- __Real-time Updates__: Settings are saved to config.toml when changed
- __Clear Documentation__: Explains that retention only applies when incognito mode is off

### 3. __Automatic History Cleanup__

- __Background Processing__: Cleanup runs automatically when new chats are created (non-incognito mode)
- __Smart Logic__: Only deletes chats older than configured retention period
- __Complete Cleanup__: Removes both chat records and associated messages
- __Performance Optimized__: Non-blocking background execution

### 4. __Manual Cleanup API__

- __Endpoint__: `POST /api/cleanup-history` for manual cleanup triggers
- __Utility Functions__: Reusable cleanup logic in dedicated utility file

### 5. __Docker Rebuild__

- __Container Rebuild__: Successfully rebuilt the Docker containers with new features
- __Configuration Persistence__: config.toml changes are preserved in Docker volume
- __Application Ready__: The application should now be accessible at [](http://localhost:3000)<http://localhost:3000>

## Key Features:

1. __Incognito Mode Integration__: History retention only applies when incognito mode is OFF
2. __Flexible Configuration__: 0 = keep forever, any positive number = days to retain
3. __Automatic Cleanup__: Runs in background when creating new chats
4. __Manual Control__: API endpoint for manual cleanup triggers
5. __Database Integrity__: Properly removes both chats and associated messages

## Testing the Feature:

1. __Access the Application__: Open [](http://localhost:3000)<http://localhost:3000> in your browser
2. __Configure Settings__: Go to Settings → History Settings → Set retention days
3. __Test Incognito Mode__: Toggle incognito mode on/off to see different behaviors
4. __Create Test Chats__: Create chats in both modes to verify functionality
5. __Manual Cleanup__: Use the `/api/cleanup-history` endpoint to test manual cleanup
2025-06-24 18:26:18 +08:00
TamHC
26952ff6c8
Add files via upload 2025-06-24 17:35:41 +08:00
TamHC
3660fb8bdd
Update suggestionGeneratorAgent.ts
match the suggestions to user's language
2025-06-24 15:30:38 +08:00
ItzCrazyKns
0024ce36c8
Merge pull request #784 from Davixk/fix/docs-typo
docs: correct typo in npm start command
2025-06-21 20:27:34 +05:30
ItzCrazyKns
c44e746807
Merge pull request #785 from koyasi777/patch-1
feat(gemini): add Gemini 2.5 Flash & Pro preview models (May 2025)
2025-06-21 20:26:37 +05:30
ItzCrazyKns
b1826066f4
Merge pull request #801 from glitchySid/patch-1
Update README.md
2025-06-21 20:25:41 +05:30
ItzCrazyKns
b0b8acc45b
Merge pull request #781 from alckasoc/master
feat(models): Update Gemini 2.5 pro key
2025-06-21 20:25:06 +05:30
Siddhesh Mhatre
e2b9ffc072
Update README.md
Mentioned that Gemini api key can be used in perplexica.
2025-06-11 22:52:13 +05:30
Dave
3b46baca4f docs(readme): fix typo in npm start command 2025-06-02 05:52:31 +02:00
こやし
772e461c08
feat(gemini): add Gemini 2.5 Flash & Pro preview models (May 2025) 2025-06-02 00:30:18 +09:00
Dave
5c6018a0f9 docs: correct typo in npm start command 2025-06-01 06:35:16 +02:00
ItzCrazyKns
0b7989c3d3 feat(empty-chat): remove unused imports 2025-05-30 09:55:06 +05:30
ItzCrazyKns
8cfcc3e39c feat(chat): update margins and spacing 2025-05-30 09:52:36 +05:30
ItzCrazyKns
3a57261590 feat(package): bump version 2025-05-30 09:33:15 +05:30
ItzCrazyKns
a86a1a461c feat(weather-icons): rename weather to weather-ico 2025-05-30 09:24:54 +05:30
ItzCrazyKns
2257e1df0c feat(empty-chat): add article widget 2025-05-30 08:36:40 +05:30
ItzCrazyKns
ccb72c8970 feat(app): add weather widget 2025-05-30 08:36:08 +05:30
ItzCrazyKns
740ff941a5 feat(discover): add preview mode 2025-05-30 08:35:15 +05:30
ItzCrazyKns
117a683d9a feat(assets): add weather icons 2025-05-30 08:34:47 +05:30
alckasoc
9eba4b7373 Merge branch 'master' of https://github.com/alckasoc/Perplexica 2025-05-29 18:27:00 -07:00
alckasoc
91306dc0c7 update gemini 2.5 pro key 2025-05-29 18:26:36 -07:00
ItzCrazyKns
1716dd5a65
Merge pull request #746 from OmarElKadri/master
bug(file-upload): fixed an error in uploading dox files.
2025-05-29 19:15:58 +05:30
ItzCrazyKns
66f9a674f1
Merge branch 'master' into master 2025-05-29 19:15:24 +05:30
ItzCrazyKns
41fc5274ff feat(package): update package files 2025-05-29 19:13:20 +05:30
ItzCrazyKns
bcebdb5fd9 feat(chat): allow export as pdf or markdown 2025-05-28 13:01:05 +05:30
ItzCrazyKns
876487ad11 feat(db): add migration script, migrate on each run 2025-05-28 10:41:12 +05:30
ItzCrazyKns
18da75ad97 feat(db): create migration files 2025-05-28 10:35:19 +05:30
ItzCrazyKns
c80ac1415d feat(app): lint & beautify 2025-05-27 18:42:02 +05:30
ItzCrazyKns
bb21184ea2 feat(settings): show loading spinner immediately 2025-05-27 18:32:09 +05:30
ItzCrazyKns
0c3740fdf2 feat(groq-provider): dynamically fetch models 2025-05-27 18:23:40 +05:30
ItzCrazyKns
701819d018 Revert "Update README.md"
This reverts commit 68e151b2bd.
2025-05-13 20:14:08 +05:30
ItzCrazyKns
68e151b2bd Update README.md 2025-04-29 17:13:30 +05:30
ItzCrazyKns
06ff272541 feat(openai): add GPT 4.1 models 2025-04-29 13:10:14 +05:30
ItzCrazyKns
4154d5e4b1 Merge branch 'pr/629' 2025-04-23 20:35:52 +05:30
ItzCrazyKns
1862491496 feat(settings): add LM Studio API URL 2025-04-12 11:59:05 +05:30
ItzCrazyKns
073b5e897c feat(app): lint & beautify 2025-04-12 11:58:52 +05:30
OTYAK
7e1d6ebd19 bug(file upload): fixed an erro in uploading dox files. 2025-04-11 18:46:03 +01:00
Rami
9a332e79e4
Merge branch 'ItzCrazyKns:master' into feature/lm-studio-provider 2025-04-11 20:07:58 +04:00
ItzCrazyKns
72450b9217
Merge pull request #731 from ClawCloud-Ron/master
docs: add ClawCloud Run button
2025-04-11 21:20:44 +05:30
haddadrm
7e1dc33a08 Implement provider formatting improvements and fix client-side compatibility
- Add PROVIDER_INFO metadata to each provider file with proper display names
- Create centralized PROVIDER_METADATA in index.ts for consistent reference
- Update settings UI to use provider metadata for display names
- Fix client/server compatibility for Node.js modules in config.ts
2025-04-11 19:18:19 +04:00
haddadrm
aa240009ab Feature: Add LM Studio provider integration - Added LM Studio provider to support OpenAI compatible API - Implemented chat and embeddings model loading - Updated config to include LM Studio API endpoint 2025-04-11 19:18:19 +04:00
sjiampojamarn
41b258e4d8 Set speech message before return 2025-04-08 23:17:52 -07:00
ItzCrazyKns
da1123d84b feat(groq): update model name 2025-04-07 23:30:51 +05:30
ItzCrazyKns
627775c430 feat(groq): remove maverick (not being run yet) 2025-04-07 23:29:51 +05:30
ItzCrazyKns
245573efca feat(groq): update model list 2025-04-07 23:23:18 +05:30