We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a1f16 commit f50b87fCopy full SHA for f50b87f
llama_cpp/server/app.py
@@ -191,7 +191,7 @@ def get_settings():
191
192
193
class CreateCompletionRequest(BaseModel):
194
- prompt: Union[str, List[str]] = Field(
+ prompt: str = Field(
195
default="", description="The prompt to generate completions for."
196
)
197
suffix: Optional[str] = Field(
@@ -276,7 +276,7 @@ async def server_sent_events(
276
277
class CreateEmbeddingRequest(BaseModel):
278
model: Optional[str] = model_field
279
- input: Union[str, List[str]] = Field(description="The input to embed.")
+ input: str = Field(description="The input to embed.")
280
user: Optional[str]
281
282
class Config:
0 commit comments