guan404ming commented on code in PR #70302:
URL: https://github.com/apache/airflow/pull/70302#discussion_r3771875892
##########
providers/common/ai/src/airflow/providers/common/ai/utils/file_analysis.py:
##########
@@ -370,12 +386,12 @@ def detect_file_format(path: ObjectStoragePath) ->
tuple[str, str | None]:
raise LLMFileAnalysisUnsupportedFormatError(
f"Unsupported file format {detected!r} for {path}. Supported
formats: {', '.join(SUPPORTED_FILE_FORMATS)}."
)
- if compression and compression != "gzip":
+ if compression and compression not in _DECOMPRESSORS:
Review Comment:
Fixed: known-codec set, AirflowOptionalProviderFeatureException naming the
missing module, docs note added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]