mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Tree: Format
Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
@@ -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."
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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."
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user