Commit Graph
1387 Commits
Author SHA1 Message Date
Cohee 8d2b9d2dab Secrets manager (#4131)
* Secret manager (now for real)

* Refactor secret manager dialog

* Add error handling to secrets migration

* Adjust default value

* Add secret-id slash command

* Add secret management slash commands

* Improve type definitions

* Improve compatibility of UUID generator

* Add copy buttons to manager view

* Improve compatibility with Vertex AI service account
- Changed to input since textarea can't be used with datalist
- Unblock regular key placeholder
- Save email as a key label
- Interrupt validation if the input is a UUID (autocompleted)

* Add optional label input for secret values in key manager dialog

* Update masking rules

* /secret-id: make the arg "required" (it's not)
2025-06-11 21:26:19 +03:00
Cohee 320b7b1450 Write /edit endpoint error to console 2025-06-11 10:53:15 +00:00
Cohee a5127a58e6 Add PPP types allowing tool calls (#4125) 2025-06-09 22:17:54 +03:00
InterestingDarkness 358bbf8622 Replace url.origin with trimTrailingSlash (#4118)
* Replace url.origin with trimV1

* Replace url.origin with trimTrailingSlash
2025-06-08 19:09:15 +03:00
Cohee d0b4eb2abb Allow bypass AI Studio status check 2025-06-08 02:49:58 +03:00
Cohee dfc1688eb5 Load bg thumbnail config from backend 2025-06-08 00:01:10 +03:00
Cohee c22d70793d Refactor /status endpoint 2025-06-07 22:40:52 +03:00
InterestingDarkness a106602f25 Add static model list for Google AI Studio 2025-06-08 02:36:01 +08:00
InterestingDarkness ff4a98a939 Implement Google AI Studio model list dynamic fetching 2025-06-08 01:10:31 +08:00
Cohee d55676d6d5 New Jeremy 2.5 Pro 2025-06-05 20:14:46 +03:00
Cohee 96fb85457f Gallery: add delete functionality for gallery items 2025-06-04 23:53:18 +03:00
Cohee f646c9416a fix: handle enhance parameter in pollinations generate endpoint 2025-06-04 23:25:13 +03:00
Cohee 0eff634bd0 OpenRouter: add cache TTL control for Claude 2025-06-04 20:30:20 +03:00
Cohee 1ae4c22ebc Merge pull request #4086 from NicodeSS/release
fix: lowercase remote-user header in authelia auto-login procedure
2025-06-02 17:27:54 +03:00
Nicode cfa9ef4726 fix: lowercase remote-user header in authelia auto-login procedure
Ensure the remote-user header is lowercased to fix case-sensitivity issues in the authelia auto-login process, improving compatibility.
2025-06-02 20:53:39 +08:00
Cohee 281ce10040 Update placeholder for empty message 2025-06-02 11:44:56 +03:00
Nikolas BrownandCohee c4d89b2067 Gemini inline video (#4078)
* Add inline video attachment support for Gemini 2.5 Pro

* file formatting

* removed redundant function for saving video to message

* removed other redundant function for saving video to message

* Seperate inlining check for video

* Edit video token cost to be a conservative estimate of 10000 tokens

* fixed missing semicolon

* Adds seperate ui toggle for video inlining.

* Move mes_video out of img_container

* Remove title from video element for now

* Better visibilty of video with controls

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-06-01 15:04:16 +03:00
Cohee 3ec9b1a099 Implement data clean-up dialog (#4072)
* [wip] Add user data cleanup service

* Add clean-up report viewer

* Fix review comments

* Add function comments

* Implement item actions

* Fix UI styles

* Add placeholder for empty results, update category description view

* Add displayEmptyPlaceholder method to show message when results list is empty

* Adjust menu buttons row

* Delete char-scoped data bank attachments on character deletion

* Data Bank: Handle character attachments on rename

* Remove line breaks in description strings

* Drop the category when the last item is deleted

* Skip invalid hashes instead of bailing
2025-06-01 13:56:34 +03:00
Cohee 5b7483af14 Add filename validation middleware to create endpoint 2025-06-01 01:11:26 +03:00
Cohee b7444a0fd2 Add filename validation middleware to upload endpoint
#4065
2025-06-01 01:09:53 +03:00
omahs d7d20a67fa Fix typos 2025-05-29 11:56:59 +02:00
Cohee b61269445d Merge pull request #4046 from InterestingDarknessII/vertexfull
Add Vertex AI Full Version support
2025-05-28 20:52:24 +03:00
Cohee 250bf5249a Remove unnecessary blank lines in chat-completions.js 2025-05-28 20:38:09 +03:00
InterestingDarkness 75e3f599e6 Derive Vertex AI Project ID from Service Account JSON
This commit refactors the Vertex AI integration to automatically derive the
Project ID from the provided Service Account JSON. This simplifies the
configuration process for users in "Full" (service account) authentication
mode by removing the need to specify the Project ID separately.
2025-05-28 21:57:17 +08:00
InterestingDarkness c9f90a2bd3 Update Gemini model options in Vertex AI section
- Removed outdated model options from the Gemini 2.0 optgroup in index.html.
- Added 'gemini-2.0-flash-preview-image-generation' to the image generation models in chat-completions.js for improved functionality.
2025-05-28 09:26:06 +08:00
Cohee b3077c4635 Use shared constant for default avatar path 2025-05-27 22:34:22 +03:00
buzz 4bec90abb5 Import character card from Soulkyn (#4042) 2025-05-27 22:30:15 +03:00
InterestingDarkness 1e2bec1751 Removed direct references to 'vertexai_project_id' from openai.js and related files, ensuring it is now managed through backend secrets for enhanced security. 2025-05-27 21:25:53 +08:00
InterestingDarkness a9d4988fc0 Remove vertexai_service_account_json from oai_settings. And google.js. 2025-05-27 08:59:13 +08:00
Cohee 2c7f2e2014 Pollinations: fix headers, add samplers 2025-05-26 23:18:51 +03:00
Cohee e2222ac40a Pollinations: fix headers, add samplers 2025-05-26 23:18:14 +03:00
InterestingDarkness 1c048a6c79 Refactor Google authentication functions for Vertex AI
- Exported `getVertexAIAuth`, `generateJWTToken`, and `getAccessToken` functions from google.js for better modularity.
- Removed redundant JWT token generation and access token retrieval logic from chat-completions.js, utilizing the newly exported functions instead.
- Improved code organization and maintainability by centralizing authentication logic.
2025-05-27 00:31:43 +08:00
InterestingDarkness 7fcd40c829 fix ESLint 2025-05-26 22:18:54 +08:00
InterestingDarkness 5656c7950d Implement Vertex AI authentication modes and configuration in UI
- Updated index.html to include options for Vertex AI authentication modes (Express and Full).
- Enhanced openai.js to manage Vertex AI settings, including project ID, region, and service account JSON.
- Added validation and handling for service account JSON in the backend.
- Modified API request handling in google.js to support both authentication modes for Vertex AI.
- Updated secrets.js to include a key for storing Vertex AI service account JSON.
- Improved error handling and user feedback for authentication issues.
2025-05-26 22:09:59 +08:00
Cohee 51c5783eb3 Add referrer for Pollinations requests 2025-05-26 08:08:38 +00:00
Cohee 64edcfae22 Claude: allow to request thinking even if not displayed 2025-05-25 04:48:49 +03:00
Aykut Akgün e4217dbeba custom endpoint handling (#4031) 2025-05-24 01:41:03 +03:00
Cohee 560c6e8ff1 Claude: control cache TTL with config 2025-05-23 21:40:40 +03:00
Cohee 22afd570fc Claude: set cache TTL to 1h 2025-05-23 20:11:10 +03:00
Cohee be54ef3dac Fix file handle leak on empty chat info 2025-05-22 23:19:10 +03:00
Cohee 57b81be9ce Caption - allow custom endpoint for xAI 2025-05-22 23:03:04 +03:00
Cohee edf307aa9c claude 4 2025-05-22 21:14:13 +03:00
Cohee ade45b6cd1 Allow prompt post-processing for all sources. Add 'single user msg' processing (#4009)
* Allow prompt post-processing for all sources. Add 'single user msg' PPP type

* Fix copilot comments

* Fix typo in element id

* Remove redundant conditions

* Lint fix

* Add link to PPP docs
2025-05-22 20:36:22 +03:00
NijikaMyWaifuandCohee 157315cd68 Add Vertex AI express mode support (#3977)
* Add Vertex AI express mode support
Split Google AI Studio and Vertex AI

* Add support for Vertex AI, including updating default models and related settings, modifying frontend HTML to include Vertex AI options, and adjusting request processing logic in the backend API.

* Log API name in the console

* Merge sysprompt toggles back

* Use Gemma tokenizers for Vertex and LearnLM

* AI Studio parity updates

* Add link to express mode doc. Also technically it's not a form

* Split title

* Use array includes

* Add support for Google Vertex AI in image captioning feature

* Specify caption API name, add to compression list

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-05-22 20:10:53 +03:00
Cohee a815461d5a GOOGLE THONK IS BACK 🚀
Closes #4024
2025-05-21 23:42:21 +03:00
Cohee 0b260fe835 Only allow POST requests to ping endpoint 2025-05-21 23:25:01 +03:00
Cohee 84745034e7 Fix handling of recent group chats if empty
Fixes #4022
2025-05-21 22:50:15 +03:00
Cohee 074ca4a55b flash preview 2025-05-20 21:22:00 +03:00
Cohee c3376da393 Fix import of chars and lorebook by chub URL
Closes #4011
2025-05-19 19:37:54 +03:00
Cohee 99d473654f Pollinations: write failed image request body to console 2025-05-19 00:15:08 +03:00