forked from mtusi2026/mtusi2026lab3
feat: implement instance id and idempotency key handling
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ from fastapi import Depends, FastAPI, Header, HTTPException, Query, Request
|
||||
from fastapi.exceptions import RequestValidationError
|
||||
from fastapi.responses import JSONResponse
|
||||
from fastapi.security import HTTPBasic, HTTPBasicCredentials
|
||||
from sqlalchemy import text
|
||||
from sqlalchemy import select, text
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from starlette.middleware.base import BaseHTTPMiddleware
|
||||
|
||||
@@ -29,7 +29,7 @@ from .auth import (
|
||||
revoke_current_session,
|
||||
verify_password,
|
||||
)
|
||||
from .db.models import SessionRow, User
|
||||
from .db.models import IdempotencyRecord, SessionRow, User
|
||||
from .db.session import get_db
|
||||
from .models import CreateChat, CreateMessage, CreateUser
|
||||
from .repositories import chats as chats_repo
|
||||
|
||||
Reference in New Issue
Block a user