pvanand commited on
Commit
443d394
1 Parent(s): 457ce08

Update document_generator.py

Browse files
Files changed (1) hide show
  1. document_generator.py +1 -1
document_generator.py CHANGED
@@ -261,7 +261,7 @@ class DocumentResponse(BaseModel):
261
  json_document: Dict
262
  markdown_document: str
263
 
264
- @cache()
265
  @router.post("/generate-document", response_model=DocumentResponse)
266
  async def generate_document_endpoint(request: DocumentRequest):
267
  ai_client = AIClient()
 
261
  json_document: Dict
262
  markdown_document: str
263
 
264
+ @cache(expire=600*24*7)
265
  @router.post("/generate-document", response_model=DocumentResponse)
266
  async def generate_document_endpoint(request: DocumentRequest):
267
  ai_client = AIClient()