MingDoan's picture
feat: Image to Text
f26cbb9
raw
history blame contribute delete
348 Bytes
from pydantic import BaseModel, Field
class ChatsModel(BaseModel):
prompt: str = Field(..., example="Hello, I'm a chatbot")
histories: list[dict[str, str]] | None = Field(
None, example=[{"user": "Hello", "assistant": "Hi"}])
openai_key: str | None = Field(
None, descriptions="Open AI API key", example="OPENAI_KEY")