from pydantic import BaseModel
from typing import Optional

class ChatRequest(BaseModel):
    client_id: Optional[str] = None
    language: str
    message_type: str
    content: str
    mode: str
    voice: str
    model: str
    access_token: Optional[str] = None # Make access_token optional