fix 'NoneType' and new ContentType supported. (#4818)
This commit is contained in:
parent
e0da0744b5
commit
176d91937d
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ from core.rag.models.document import Document
|
|||
from extensions.ext_storage import storage
|
||||
from models.model import UploadFile
|
||||
|
||||
SUPPORT_URL_CONTENT_TYPES = ['application/pdf', 'text/plain']
|
||||
SUPPORT_URL_CONTENT_TYPES = ['application/pdf', 'text/plain', 'application/json']
|
||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue