mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-02 08:40:53 +03:00
b62297341f
This pull request adds PDF generation functionality and improves the
formatting of emails. It includes a new module for generating PDFs using
the fpdf2 library and updates the email templates to use markdown
formatting for better readability.
<!--
ELLIPSIS_HIDDEN
-->
----
| <a href="https://ellipsis.dev" target="_blank"><img
src="https://avatars.githubusercontent.com/u/80834858?s=400&u=31e596315b0d8f7465b3ee670f25cea677299c96&v=4"
alt="Ellipsis" width="30px" height="30px"/></a> | 🚀 This PR
description was created by [Ellipsis](https://www.ellipsis.dev) for
commit ccecff77a5
. |
|--------|--------|
### Summary:
This PR introduces PDF generation functionality, improves email
formatting, sanitizes filenames, updates various files and dependencies,
and updates `docker-compose.dev.yml`.
**Key points**:
- Added PDF generation functionality using the `fpdf2` library
- Improved email formatting
- Sanitized filenames using the `unidecode` library
- Updated `backend/modules/assistant/ito/ito.py` to generate PDFs and
sanitize filenames
- Added `pdf_generator.py` in `backend/modules/assistant/ito/utils/` for
PDF generation
- Updated `Pipfile` and `Pipfile.lock` in
`backend/modules/assistant/ito/utils/` to include `unidecode`
- Updated `requirements.txt` with new dependencies
- Updated `docker-compose.dev.yml`
----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)
<!--
ELLIPSIS_HIDDEN
-->
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
#### QUIVR Configuration
|
|
# This file is used to configure the Quivr stack. It is used by the `docker-compose.yml` file to configure the stack.
|
|
|
|
# OPENAI. Update this to use your API key. To skip OpenAI integration use a fake key, for example: tk-aabbccddAABBCCDDEeFfGgHhIiJKLmnopjklMNOPqQqQqQqQ
|
|
OPENAI_API_KEY=CHANGE_ME
|
|
|
|
# LOCAL
|
|
# OLLAMA_API_BASE_URL=http://host.docker.internal:11434 # Uncomment to activate ollama. This is the local url for the ollama api
|
|
|
|
########
|
|
# FRONTEND
|
|
########
|
|
|
|
NEXT_PUBLIC_ENV=local
|
|
NEXT_PUBLIC_BACKEND_URL=http://localhost:5050
|
|
NEXT_PUBLIC_SUPABASE_URL=http://localhost:54321
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
|
|
NEXT_PUBLIC_CMS_URL=https://cms.quivr.app
|
|
NEXT_PUBLIC_FRONTEND_URL=http://localhost:*
|
|
|
|
|
|
|
|
########
|
|
# BACKEND
|
|
########
|
|
|
|
SUPABASE_URL=http://host.docker.internal:54321
|
|
SUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
|
|
PG_DATABASE_URL=notimplementedyet
|
|
ANTHROPIC_API_KEY=null
|
|
JWT_SECRET_KEY=super-secret-jwt-token-with-at-least-32-characters-long
|
|
AUTHENTICATE=true
|
|
TELEMETRY_ENABLED=true
|
|
CELERY_BROKER_URL=redis://redis:6379/0
|
|
CELEBRY_BROKER_QUEUE_NAME=quivr-preview.fifo
|
|
QUIVR_DOMAIN=http://localhost:3000/
|
|
|
|
|
|
|
|
#RESEND
|
|
RESEND_API_KEY=<change-me>
|
|
RESEND_EMAIL_ADDRESS=onboarding@resend.dev
|
|
RESEND_CONTACT_SALES_FROM=contact_sales@resend.dev
|
|
RESEND_CONTACT_SALES_TO=<change-me>
|
|
|
|
CRAWL_DEPTH=1
|
|
|
|
|
|
PREMIUM_MAX_BRAIN_NUMBER=30
|
|
PREMIUM_MAX_BRAIN_SIZE=10000000
|
|
PREMIUM_DAILY_CHAT_CREDIT=100
|
|
|
|
|