mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Embeddings: Fix base64 return
A base64 embedding can be a string post-encoding. Signed-off-by: kingbri <8082010+bdashore3@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@ class EmbeddingsRequest(BaseModel):
|
|||||||
|
|
||||||
class EmbeddingObject(BaseModel):
|
class EmbeddingObject(BaseModel):
|
||||||
object: str = Field("embedding", description="Type of the object.")
|
object: str = Field("embedding", description="Type of the object.")
|
||||||
embedding: List[float] = Field(
|
embedding: Union[List[float], str] = Field(
|
||||||
..., description="Embedding values as a list of floats."
|
..., description="Embedding values as a list of floats."
|
||||||
)
|
)
|
||||||
index: int = Field(
|
index: int = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user