fix: keep backwards compatibility for message creation endpoint (#328)

This commit is contained in:
doria 2026-01-14 14:26:17 -05:00 committed by GitHub
parent 26da24c8bf
commit 2ef0589705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ async def parse_upload_form(
@router.post("", response_model=list[schemas.Message], status_code=201)
@router.post(
"/", response_model=list[schemas.Message], status_code=201, include_in_schema=False
) # backwards compatibility with pre-2.6.0 faulty route endpoint
async def create_messages_for_session(
background_tasks: BackgroundTasks,
messages: schemas.MessageBatchCreate,