fix old code in completions
This commit is contained in:
parent
b9566e9db7
commit
6e74ce7c28
|
@ -84,9 +84,10 @@ def openai_completions(model_name=None):
|
|||
}
|
||||
})
|
||||
|
||||
stats = redis.get('proxy_stats', dtype=dict)
|
||||
if stats:
|
||||
response.headers['x-ratelimit-reset-requests'] = stats['queue']['estimated_wait_sec']
|
||||
# TODO:
|
||||
# stats = redis.get('proxy_stats', dtype=dict)
|
||||
# if stats:
|
||||
# response.headers['x-ratelimit-reset-requests'] = stats['queue']['estimated_wait_sec']
|
||||
return response, 200
|
||||
else:
|
||||
if not opts.enable_streaming:
|
||||
|
|
Reference in New Issue