mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
use actual null instead of string "null" for finish_reason in openai responses
This commit is contained in:
parent
ec43d2b147
commit
c55bb9a63d
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ nocertify = False
|
|||
start_time = time.time()
|
||||
last_req_time = time.time()
|
||||
last_non_horde_req_time = time.time()
|
||||
currfinishreason = "null"
|
||||
currfinishreason = None
|
||||
|
||||
|
||||
saved_stdout = None
|
||||
|
@ -2053,7 +2053,7 @@ class KcppServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
|||
|
||||
async def generate_text(self, genparams, api_format, stream_flag):
|
||||
global friendlymodelname, chatcompl_adapter, currfinishreason
|
||||
currfinishreason = "null"
|
||||
currfinishreason = None
|
||||
|
||||
def run_blocking(): # api format 1=basic,2=kai,3=oai,4=oai-chat
|
||||
# flag instance as non-idle for a while
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue