From 5352c14c5982dea01b9fbdcf2ed2ee061d091d87 Mon Sep 17 00:00:00 2001 From: vfbd Date: Mon, 8 Aug 2022 19:20:48 -0400 Subject: [PATCH] Fix typo in /config/soft_prompt documentation --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 4ec1e7e6..cfe994cd 100644 --- a/aiserver.py +++ b/aiserver.py @@ -7276,7 +7276,7 @@ def create_config_endpoint(method="GET", schema="MemorySchema"): f = api.route(f"/config/{_route_name}", methods=[method])(f) class SoftPromptSettingSchema(KoboldSchema): - value: str = fields.String(required=True, validate=[soft_prompt_validator, validate.Regexp(r"^[^/\\]*$")], metadata={"description": "Soft prompt name, or a string containing only whitespace for no soft prompt. If using the PUT method and no soft prompt is loaded, this will always be the empty string."}) + value: str = fields.String(required=True, validate=[soft_prompt_validator, validate.Regexp(r"^[^/\\]*$")], metadata={"description": "Soft prompt name, or a string containing only whitespace for no soft prompt. If using the GET method and no soft prompt is loaded, this will always be the empty string."}) @api_v1.get("/config/soft_prompt") @api_schema_wrap