File size: 322 Bytes
2eafbc4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from typing import Optional

from pydantic import BaseModel, Field


class CogVLMResponse(BaseModel):
    response: str = Field(description="Text generated by CogVLM")
    time: Optional[float] = Field(
        None,
        description="The time in seconds it took to produce the response including preprocessing",
    )