Tree: Format

Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
kingbri
2025-05-17 00:46:40 -04:00
parent fa534fe551
commit 0858b6d4b2
5 changed files with 11 additions and 13 deletions

View File

@@ -103,8 +103,7 @@ async def stream_generation(data: GenerateRequest, request: Request):
)
except Exception:
yield get_generator_error(
f"Kobold generation {data.genkey} aborted. "
"Please check the server console."
f"Kobold generation {data.genkey} aborted. Please check the server console."
)

View File

@@ -15,8 +15,7 @@ class EmbeddingsRequest(BaseModel):
)
encoding_format: str = Field(
"float",
description="Encoding format for the embeddings. "
"Can be 'float' or 'base64'.",
description="Encoding format for the embeddings. Can be 'float' or 'base64'.",
)
model: Optional[str] = Field(
None,
@@ -31,7 +30,7 @@ class EmbeddingObject(BaseModel):
..., description="Embedding values as a list of floats."
)
index: int = Field(
..., description="Index of the input text corresponding to " "the embedding."
..., description="Index of the input text corresponding to the embedding."
)