mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-04 12:31:32 +00:00
c030c9ee4b
Embedding: - Persist embedding_max_tokens. It was dropped when saving the provider config and always reset to the 8192 default, so self-hosted models with a smaller limit kept getting rejected. - Split embedding requests to stay under the provider's item and token caps. A large snippet or URL import used to go in one request, hit the cap, fail, and get retried every minute forever. - Skip blank chunks. An empty input string makes the API reject the whole batch. - Add the tiktoken tokenizer (cl100k_base) with tests for token counting. Agent prompt: - Move contact fields, the conversation subject, and custom attributes out of the system prompt and into a delimited user-role block, so a crafted name or subject can't act as an instruction. Frontend: - Switch the primary and sidebar colors to a green theme. - Show a "summarizing" info toast while the AI summary runs, and add an info toast variant. - Make the snippet content box taller and the snippet dialog wider. - Drop a hardcoded dark hover color on the scroll-to-bottom button.
Libredesk frontend
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Compile and Minify for Production
npm run build
Run Headed Component Tests with Cypress Component Testing
npm run test:unit:dev # or `npm run test:unit` for headless testing
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint