[Frontend]: Support base64 embedding (#5935)

Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
This commit is contained in:
llmpros
2024-06-30 23:53:00 +08:00
committed by GitHub
co-authored by Cyrus Leung
parent 2be6955a3f
commit c6c240aa0a
3 changed files with 47 additions and 14 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ class CompletionStreamResponse(OpenAIBaseModel):
class EmbeddingResponseData(BaseModel):
index: int
object: str = "embedding"
embedding: List[float]
embedding: Union[List[float], str]
class EmbeddingResponse(BaseModel):