[OpenAI Extension] Add more types to Embeddings Endpoint (#4895)
This commit is contained in:
parent
e53f99faa0
commit
11f082e417
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class ChatCompletionResponse(BaseModel):
|
|||
|
||||
|
||||
class EmbeddingsRequest(BaseModel):
|
||||
input: str | List[str]
|
||||
input: str | List[str] | List[int] | List[List[int]]
|
||||
model: str | None = Field(default=None, description="Unused parameter. To change the model, set the OPENEDAI_EMBEDDING_MODEL and OPENEDAI_EMBEDDING_DEVICE environment variables before starting the server.")
|
||||
encoding_format: str = Field(default="float", description="Can be float or base64.")
|
||||
user: str | None = Field(default=None, description="Unused parameter.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue