Skip to content

Commit f50b87f

Browse files
committed
fix server types for client gen
1 parent 43a1f16 commit f50b87f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama_cpp/server/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def get_settings():
191191

192192

193193
class CreateCompletionRequest(BaseModel):
194-
prompt: Union[str, List[str]] = Field(
194+
prompt: str = Field(
195195
default="", description="The prompt to generate completions for."
196196
)
197197
suffix: Optional[str] = Field(
@@ -276,7 +276,7 @@ async def server_sent_events(
276276

277277
class CreateEmbeddingRequest(BaseModel):
278278
model: Optional[str] = model_field
279-
input: Union[str, List[str]] = Field(description="The input to embed.")
279+
input: str = Field(description="The input to embed.")
280280
user: Optional[str]
281281

282282
class Config:

0 commit comments

Comments
 (0)