mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
add credential id
This commit is contained in:
@ -816,7 +816,7 @@ class DocumentSegment(Base):
|
||||
base_url = f"/files/{upload_file_id}/file-preview"
|
||||
signed_url = f"{base_url}?{params}"
|
||||
signed_urls.append((match.start(), match.end(), signed_url))
|
||||
|
||||
|
||||
# For tools directory - direct file formats (e.g., .png, .jpg, etc.)
|
||||
pattern = r"/files/tools/([a-f0-9\-]+)\.([a-zA-Z0-9]+)(?:\?.*?)?"
|
||||
matches = re.finditer(pattern, text)
|
||||
|
||||
Reference in New Issue
Block a user