mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
[OpenAI Extension] Add more types to Embeddings Endpoint (#4895)
This commit is contained in:
parent
e53f99faa0
commit
11f082e417
@ -120,7 +120,7 @@ class ChatCompletionResponse(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class EmbeddingsRequest(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.")
|
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.")
|
encoding_format: str = Field(default="float", description="Can be float or base64.")
|
||||||
user: str | None = Field(default=None, description="Unused parameter.")
|
user: str | None = Field(default=None, description="Unused parameter.")
|
||||||
|
Loading…
Reference in New Issue
Block a user