* wait I forgot to comit locally * cp the entire core directory and then rm the .git subdir
12 lines
357 B
Python
12 lines
357 B
Python
from typing import List, Literal
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class EmbeddingResponse(BaseModel):
|
|
"""OpenAI embedding response model: https://platform.openai.com/docs/api-reference/embeddings/object"""
|
|
|
|
index: int # the index of the embedding in the list of embeddings
|
|
embedding: List[float]
|
|
object: Literal["embedding"] = "embedding"
|