mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-02 11:01:20 +02:00
add endpoint to fetch true max context
This commit is contained in:
@@ -530,6 +530,9 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||
elif self.path.endswith(('/api/v1/info/version', '/api/latest/info/version')):
|
||||
response_body = (json.dumps({"result":"1.2.4"}).encode())
|
||||
|
||||
elif self.path.endswith(('/api/extra/true_max_context_length')): #do not advertise this to horde
|
||||
response_body = (json.dumps({"value": maxctx}).encode())
|
||||
|
||||
elif self.path.endswith(('/api/extra/version')):
|
||||
response_body = (json.dumps({"result":"KoboldCpp","version":KcppVersion}).encode())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user