pyconverters-openai_vision 0.5.28__tar.gz → 0.5.30__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.28 → pyconverters_openai_vision-0.5.30}/PKG-INFO +1 -1
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/pyconverters_openai_vision/__init__.py +1 -1
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/pyconverters_openai_vision/openai_vision.py +6 -6
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/setup.py +1 -1
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/.dockerignore +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/.gitignore +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/Dockerfile +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/Jenkinsfile +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/README.md +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/bumpversion.py +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/pyconverters_openai_vision/openai_utils.py +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/pyproject.toml +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/__init__.py +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/ENG product fact files_general offer_2025_30pages.json +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/ENG product fact files_general offer_2025_30pages_alts.json +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/ENG product fact files_general offer_2025_30pages_descs.json +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/PC_Kairntech_LLM_v1.md.json +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/colducoq.jpg +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/webinar.png +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/test_openai_vision.py +0 -0
- {pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tox.ini +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""OpenAIVision converter"""
|
|
2
|
-
__version__ = "0.5.
|
|
2
|
+
__version__ = "0.5.30"
|
|
@@ -298,6 +298,11 @@ class OpenAIVisionProcessorBaseParameters(ProcessorParameters):
|
|
|
298
298
|
The token count of your prompt plus max_tokens cannot exceed the model's context length.
|
|
299
299
|
Most models have a context length of 2048 tokens (except for the newest models, which support 4096).""",
|
|
300
300
|
)
|
|
301
|
+
replace_refs_altTexts_by_descriptions: bool = Field(
|
|
302
|
+
True,
|
|
303
|
+
description="""Replace references to images in text by their textual description.""",
|
|
304
|
+
extra="advanced"
|
|
305
|
+
)
|
|
301
306
|
system_prompt: str = Field(
|
|
302
307
|
None,
|
|
303
308
|
description="""Contains the system prompt""",
|
|
@@ -344,11 +349,6 @@ class OpenAIVisionProcessorBaseParameters(ProcessorParameters):
|
|
|
344
349
|
Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.""",
|
|
345
350
|
extra="advanced",
|
|
346
351
|
)
|
|
347
|
-
replace_refs_altTexts_by_descriptions: bool = Field(
|
|
348
|
-
True,
|
|
349
|
-
description="""Replace references to images in text by their textual description.""",
|
|
350
|
-
extra="advanced"
|
|
351
|
-
)
|
|
352
352
|
|
|
353
353
|
|
|
354
354
|
class OpenAIVisionProcessorBase(ProcessorBase):
|
|
@@ -421,7 +421,7 @@ class OpenAIVisionProcessorBase(ProcessorBase):
|
|
|
421
421
|
with add_logging_context(docid=document.identifier):
|
|
422
422
|
if document.altTexts:
|
|
423
423
|
altTexts = document.altTexts
|
|
424
|
-
alts = {altText.name: altText.text for altText in
|
|
424
|
+
alts = {altText.name: altText.text for altText in altTexts}
|
|
425
425
|
anames = list(alts.keys())
|
|
426
426
|
for aname in anames:
|
|
427
427
|
atext = alts[aname]
|
|
@@ -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.30',
|
|
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.28 → pyconverters_openai_vision-0.5.30}/tests/data/colducoq.jpg
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/data/webinar.png
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.28 → pyconverters_openai_vision-0.5.30}/tests/test_openai_vision.py
RENAMED
|
File without changes
|
|
File without changes
|