Skip to content

Commit

Permalink
feat(dead-code): removed composite & api (QuivrHQ#2902)
Browse files Browse the repository at this point in the history
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
  • Loading branch information
StanGirard authored Jul 22, 2024
1 parent cf5c56d commit a2721d3
Show file tree
Hide file tree
Showing 58 changed files with 38 additions and 3,512 deletions.
2 changes: 0 additions & 2 deletions backend/api/quivr_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from quivr_api.modules.assistant.controller import assistant_router
from quivr_api.modules.brain.controller import brain_router
from quivr_api.modules.chat.controller import chat_router
from quivr_api.modules.contact_support.controller import contact_router
from quivr_api.modules.knowledge.controller import knowledge_router
from quivr_api.modules.misc.controller import misc_router
from quivr_api.modules.onboarding.controller import onboarding_router
Expand Down Expand Up @@ -86,7 +85,6 @@ def before_send(event, hint):
app.include_router(subscription_router)
app.include_router(prompt_router)
app.include_router(knowledge_router)
app.include_router(contact_router)

PROFILING = os.getenv("PROFILING", "false").lower() == "true"

Expand Down
6 changes: 6 additions & 0 deletions backend/api/quivr_api/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class BrainRateLimiting(BaseSettings):
max_brain_per_user: int = 5


class SendEmailSettings(BaseSettings):
model_config = SettingsConfigDict(validate_default=False)
resend_contact_sales_from: str = "null"
resend_contact_sales_to: str = "null"


# The `PostHogSettings` class is used to initialize and interact with the PostHog analytics service.
class PostHogSettings(BaseSettings):
model_config = SettingsConfigDict(validate_default=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ async def list_assistants(
summary = summary_inputs()
# difference = difference_inputs()
# crawler = crawler_inputs()
# audio_transcript = audio_transcript_inputs()
return [summary]


Expand Down
88 changes: 0 additions & 88 deletions backend/api/quivr_api/modules/assistant/ito/audio_transcript.py

This file was deleted.

4 changes: 2 additions & 2 deletions backend/api/quivr_api/modules/assistant/ito/ito.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from fastapi import UploadFile
from pydantic import BaseModel
from quivr_api.logger import get_logger
from quivr_api.models.settings import SendEmailSettings
from quivr_api.modules.assistant.dto.inputs import InputAssistant
from quivr_api.modules.assistant.ito.utils.pdf_generator import PDFGenerator, PDFModel
from quivr_api.modules.chat.controller.chat.utils import update_user_usage
from quivr_api.modules.contact_support.controller.settings import ContactsSettings
from quivr_api.modules.upload.controller.upload_routes import upload_file
from quivr_api.modules.user.entity.user_identity import UserIdentity
from quivr_api.modules.user.service.user_usage import UserUsage
Expand Down Expand Up @@ -80,7 +80,7 @@ async def send_output_by_email(
custom_message: str,
brain_id: str = None,
):
settings = ContactsSettings()
settings = SendEmailSettings()
file = await self.uploadfile_to_file(file)
domain_quivr = os.getenv("QUIVR_DOMAIN", "https://chat.quivr.app/")

Expand Down
Loading

0 comments on commit a2721d3

Please sign in to comment.