Add CI/CD (#1)

Reviewed-on: innovacion/Mayacontigo#1
This commit is contained in:
2025-11-25 05:54:58 +00:00
parent 11214c47f6
commit ccc7e7c786
17 changed files with 349 additions and 375 deletions

View File

@@ -6,8 +6,8 @@ from fastapi.responses import StreamingResponse
from pydantic import BaseModel
from . import services
from .config import config
from .agent import MayaInversionistas
from .config import config
@asynccontextmanager
@@ -49,5 +49,12 @@ async def send(message: Message, stream: bool = False):
generator = sse_stream(agent, message.prompt, message.conversation_id)
return StreamingResponse(generator, media_type="text/event-stream")
else:
response = await services.generate(agent, message.prompt, message.conversation_id)
response = await services.generate(
agent, message.prompt, message.conversation_id
)
return response
@app.get("/")
async def health():
return {"status": "ok"}