Spaces:
Runtime error
Runtime error
File size: 424 Bytes
21d405f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from pydantic import BaseModel
from typing import List
# Request schema
class SMSRequest(BaseModel):
messages: List[str]
from pydantic import BaseModel
from typing import List
# Response schema for embedding vectors
class EmbeddingResponse(BaseModel):
message: str
embedding: List[float]
# Final response containing all embeddings
class EmbeddingsResponse(BaseModel):
embeddings: List[EmbeddingResponse]
|