mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-17 02:10:31 +03:00
Merge branch 'main' into main
This commit is contained in:
commit
bb45566f8a
@ -5,8 +5,6 @@ from logger import get_logger
|
||||
from middlewares.auth import AuthBearer, get_current_user
|
||||
from modules.assistant.dto.inputs import InputAssistant
|
||||
from modules.assistant.dto.outputs import AssistantOutput
|
||||
from modules.assistant.ito.audio_transcript import audio_transcript_inputs
|
||||
from modules.assistant.ito.crawler import crawler_inputs
|
||||
from modules.assistant.ito.summary import SummaryAssistant, summary_inputs
|
||||
from modules.assistant.service.assistant import Assistant
|
||||
from modules.user.entity.user_identity import UserIdentity
|
||||
@ -28,9 +26,9 @@ async def list_assistants(
|
||||
"""
|
||||
|
||||
summary = summary_inputs()
|
||||
crawler = crawler_inputs()
|
||||
audio_transcript = audio_transcript_inputs()
|
||||
return [summary, crawler, audio_transcript]
|
||||
# crawler = crawler_inputs()
|
||||
# audio_transcript = audio_transcript_inputs()
|
||||
return [summary]
|
||||
|
||||
|
||||
@assistant_router.post(
|
||||
|
@ -47,6 +47,7 @@ class Outputs(BaseModel):
|
||||
|
||||
class AssistantOutput(BaseModel):
|
||||
name: str
|
||||
description: str
|
||||
tags: Optional[List[str]] = []
|
||||
input_description: str
|
||||
output_description: str
|
||||
|
@ -144,6 +144,7 @@ def summary_inputs():
|
||||
tags=["new"],
|
||||
input_description="One document to summarize",
|
||||
output_description="A summary of the document",
|
||||
icon_url="https://quivr-cms.s3.eu-west-3.amazonaws.com/assistant_summary_434446a2aa.png",
|
||||
inputs=Inputs(
|
||||
files=[
|
||||
InputFile(
|
||||
|
Loading…
Reference in New Issue
Block a user