ChenyuRabbitLove's picture
refactor: improve code readability and structure in OpenAI integration tests and services, update requirements for consistency
f5c3d9c
raw
history blame contribute delete
174 Bytes
from pydantic import BaseModel
from typing import List
class Message(BaseModel):
content: str
role: str
class ChatRequest(BaseModel):
messages: List[Message]