ChatResponse
Chat response model
Properties
| Property | Type | Required | Description |
|---|---|---|---|
message | object | β Yes | - |
usage | object | β Yes | - |
model | string | β Yes | - |
timestamp | string | β Yes | - |
Example
{
"message": {},
"usage": {},
"model": "example",
"timestamp": "example"
}Used In
Code Examples
TypeScript
interface ChatResponse {
message: any;
usage: Record<string, any>;
model: string;
timestamp: string;
}
// Usage example
const data: ChatResponse = {
"message": {},
"usage": {},
"model": "example",
"timestamp": "example"
};Python
from data_layer.schemas import ChatResponse
# Create instance
data = ChatResponse(
# Add your field values here
)cURL
curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "message": {}, "usage": {}, "model": "example", "timestamp": "example" }'Validation Rules
Required Fields: message, usage, model, timestamp
Additional Information
- Type: object
- Source: Generated from Pydantic models in
data_layer/schemas/ - Auto-validated: All fields are validated by FastAPI
This documentation is auto-generated from the OpenAPI specification.