mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
updated swagger json link fix
This commit is contained in:
parent
5c323a0661
commit
d54af7fa31
3 changed files with 5 additions and 4 deletions
|
@ -1115,7 +1115,7 @@ Enter Prompt:<br>
|
|||
response_body = (json.dumps([]).encode())
|
||||
|
||||
|
||||
elif self.path=="/api" or self.path=="/docs":
|
||||
elif self.path=="/api" or self.path=="/docs" or self.path.startswith(('/api/?json=','/api?json=','/docs/?json=','/docs?json=')):
|
||||
content_type = 'text/html'
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue