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):
|
||||
# ignored, but marked as required for the sake of compatibility with openai's api
|
||||
model: str = model_field
|
||||
input: str
|
||||
input: str = Field(
|
||||
description="The input to embed."
|
||||
)
|
||||
|
||||
class Config:
|
||||
schema_extra = {
|
||||
|
||||
Reference in New Issue
Block a user