pyconverters-openai_vision 0.5.22__tar.gz → 0.5.24__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/PKG-INFO +1 -1
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/pyconverters_openai_vision/__init__.py +1 -1
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/pyconverters_openai_vision/openai_vision.py +6 -6
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/setup.py +1 -1
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/.dockerignore +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/.gitignore +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/Dockerfile +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/Jenkinsfile +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/README.md +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/bumpversion.py +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/pyconverters_openai_vision/openai_utils.py +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/pyproject.toml +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/__init__.py +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/ENG product fact files_general offer_2025_30pages.json +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/ENG product fact files_general offer_2025_30pages_alts.json +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/ENG product fact files_general offer_2025_30pages_descs.json +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/PC_Kairntech_LLM_v1.md.json +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/colducoq.jpg +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/webinar.png +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/test_openai_vision.py +0 -0
- {pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tox.ini +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""OpenAIVision converter"""
|
|
2
|
-
__version__ = "0.5.
|
|
2
|
+
__version__ = "0.5.24"
|
|
@@ -278,7 +278,7 @@ def guess_kind(base64_src):
|
|
|
278
278
|
|
|
279
279
|
class OpenAIVisionProcessorBaseParameters(OpenAIVisionBaseParameters):
|
|
280
280
|
replace_refs_altTexts_by_descriptions: bool = Field(
|
|
281
|
-
|
|
281
|
+
True, extra="advanced"
|
|
282
282
|
)
|
|
283
283
|
|
|
284
284
|
|
|
@@ -288,7 +288,7 @@ class OpenAIVisionProcessorBase(ProcessorBase):
|
|
|
288
288
|
PREFIX: str = ""
|
|
289
289
|
oauth_token: OAuthToken = OAuthToken()
|
|
290
290
|
|
|
291
|
-
def compute_args(self, params:
|
|
291
|
+
def compute_args(self, params: OpenAIVisionProcessorBaseParameters, source: str, kind
|
|
292
292
|
) -> Dict[str, Any]:
|
|
293
293
|
if kind.mime.startswith("image"):
|
|
294
294
|
binary_block = {
|
|
@@ -421,8 +421,8 @@ class OpenAIVisionProcessor(OpenAIVisionProcessorBase):
|
|
|
421
421
|
def process(
|
|
422
422
|
self, documents: List[Document], parameters: ProcessorParameters
|
|
423
423
|
) -> List[Document]:
|
|
424
|
-
params:
|
|
425
|
-
|
|
424
|
+
params: OpenAIVisionProcessorParameters = cast(
|
|
425
|
+
OpenAIVisionProcessorParameters, parameters
|
|
426
426
|
)
|
|
427
427
|
model_str = params.model_str if bool(params.model_str and params.model_str.strip()) else None
|
|
428
428
|
model = params.model.value if params.model is not None else None
|
|
@@ -453,8 +453,8 @@ class DeepInfraOpenAIVisionProcessor(OpenAIVisionProcessorBase):
|
|
|
453
453
|
def process(
|
|
454
454
|
self, documents: List[Document], parameters: ProcessorParameters
|
|
455
455
|
) -> List[Document]:
|
|
456
|
-
params:
|
|
457
|
-
|
|
456
|
+
params: DeepInfraOpenAIVisionProcessorParameters = cast(
|
|
457
|
+
DeepInfraOpenAIVisionProcessorParameters, parameters
|
|
458
458
|
)
|
|
459
459
|
model_str = params.model_str if bool(params.model_str and params.model_str.strip()) else None
|
|
460
460
|
model = params.model.value if params.model is not None else None
|
|
@@ -48,7 +48,7 @@ entry_points = \
|
|
|
48
48
|
'pyconverters_openai_vision.openai_vision:OpenAIVisionProcessor']}
|
|
49
49
|
|
|
50
50
|
setup(name='pyconverters-openai_vision',
|
|
51
|
-
version='0.5.
|
|
51
|
+
version='0.5.24',
|
|
52
52
|
description='OpenAIVision converter',
|
|
53
53
|
author='Olivier Terrier',
|
|
54
54
|
author_email='olivier.terrier@kairntech.com',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/colducoq.jpg
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/data/webinar.png
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.22 → pyconverters_openai_vision-0.5.24}/tests/test_openai_vision.py
RENAMED
|
File without changes
|
|
File without changes
|