8000 llama_cpp server: fields for the embedding endpoint · abetlen/llama-cpp-python@114c9f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 114c9f3

Browse files
committed
llama_cpp server: fields for the embedding endpoint
1 parent 86710a1 commit 114c9f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llama_cpp/server/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ def create_completion(
189189
class CreateEmbeddingRequest(BaseModel):
190190
# ignored, but marked as required for the sake of compatibility with openai's api
191191
model: str = model_field
192-
input: str
192+
input: str = Field(
193+
description="The input to embed."
194+
)
193195

194196
class Config:
195197
schema_extra = {

0 commit comments

Comments
 (0)
0