symlink docs

This commit is contained in:
Concedo 2024-03-17 22:27:26 +08:00
parent 9342071f9c
commit 5410e4644a

View file

@ -1090,7 +1090,7 @@ Enter Prompt:<br>
response_body = (json.dumps([]).encode()) response_body = (json.dumps([]).encode())
elif self.path=="/api": elif self.path=="/api" or self.path=="/docs":
content_type = 'text/html' content_type = 'text/html'
if self.embedded_kcpp_docs is None: if self.embedded_kcpp_docs is None:
response_body = (f"KoboldCpp API is running!\n\nAPI usage reference can be found at the wiki: https://github.com/LostRuins/koboldcpp/wiki").encode() response_body = (f"KoboldCpp API is running!\n\nAPI usage reference can be found at the wiki: https://github.com/LostRuins/koboldcpp/wiki").encode()