mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
llama_cpp server: fields for the embedding endpoint
This commit is contained in:
@@ -189,7 +189,9 @@ def create_completion(
|
|||||||
class CreateEmbeddingRequest(BaseModel):
|
class CreateEmbeddingRequest(BaseModel):
|
||||||
# ignored, but marked as required for the sake of compatibility with openai's api
|
# ignored, but marked as required for the sake of compatibility with openai's api
|
||||||
model: str = model_field
|
model: str = model_field
|
||||||
input: str
|
input: str = Field(
|
||||||
|
description="The input to embed."
|
||||||
|
)
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
schema_extra = {
|
schema_extra = {
|
||||||
|
|||||||
Reference in New Issue
Block a user