mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
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"
|