mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
add comment and align time from gen and stream to 30mins
This commit is contained in:
@@ -70,7 +70,10 @@ def gen_cache(func):
|
||||
return cached_response.decode('utf-8')
|
||||
|
||||
result = func(self, model, messages, *args, **kwargs)
|
||||
redis_client.set(cache_key, result, ex=3600)
|
||||
|
||||
# expire the cache after 30 minutes
|
||||
# set time in seconds
|
||||
redis_client.set(cache_key, result, ex=1800)
|
||||
|
||||
return result
|
||||
except ValueError as e:
|
||||
|
||||
9849
frontend/package-lock.json
generated
9849
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
results.txt
12
results.txt
@@ -1,12 +0,0 @@
|
||||
Base URL:http://petstore.swagger.io,https://api.example.com
|
||||
Path1: /pets
|
||||
description: None
|
||||
parameters: []
|
||||
methods:
|
||||
get=A paged array of pets
|
||||
post=Null response
|
||||
Path2: /pets/{petId}
|
||||
description: None
|
||||
parameters: []
|
||||
methods:
|
||||
get=Expected response to a valid request
|
||||
Reference in New Issue
Block a user