BuckLakeAI / RequestModel.py
parkerjj's picture
Daily Update, First Release for model 1012
62f31c8
raw
history blame
221 Bytes
from typing import Optional, List
from pydantic import BaseModel
class PredictRequest(BaseModel):
text: str
stock_codes: Optional[List[str]] = None # 定义为可选字段,可以是一个字符串列表