pyconverters-openai_vision 0.5.30__tar.gz → 0.5.32__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.30 → pyconverters_openai_vision-0.5.32}/PKG-INFO +1 -1
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/pyconverters_openai_vision/__init__.py +1 -1
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/pyconverters_openai_vision/openai_vision.py +6 -6
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/pyproject.toml +2 -2
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/setup.py +3 -3
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/.dockerignore +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/.gitignore +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/Dockerfile +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/Jenkinsfile +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/README.md +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/bumpversion.py +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/pyconverters_openai_vision/openai_utils.py +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/__init__.py +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/ENG product fact files_general offer_2025_30pages.json +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/ENG product fact files_general offer_2025_30pages_alts.json +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/ENG product fact files_general offer_2025_30pages_descs.json +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/PC_Kairntech_LLM_v1.md.json +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/colducoq.jpg +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/webinar.png +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/test_openai_vision.py +0 -0
- {pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tox.ini +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""OpenAIVision converter"""
|
|
2
|
-
__version__ = "0.5.
|
|
2
|
+
__version__ = "0.5.32"
|
|
@@ -287,11 +287,6 @@ class OpenAIVisionProcessorBaseParameters(ProcessorParameters):
|
|
|
287
287
|
model: str = Field(
|
|
288
288
|
None, extra="internal"
|
|
289
289
|
)
|
|
290
|
-
prompt: str = Field(
|
|
291
|
-
"""If the attached file is an image: describe the image.""",
|
|
292
|
-
description="""Contains the prompt as a string""",
|
|
293
|
-
extra="multiline",
|
|
294
|
-
)
|
|
295
290
|
max_tokens: int = Field(
|
|
296
291
|
16384,
|
|
297
292
|
description="""The maximum number of tokens to generate in the completion.
|
|
@@ -304,10 +299,15 @@ class OpenAIVisionProcessorBaseParameters(ProcessorParameters):
|
|
|
304
299
|
extra="advanced"
|
|
305
300
|
)
|
|
306
301
|
system_prompt: str = Field(
|
|
307
|
-
|
|
302
|
+
"Generate a textual description of the image",
|
|
308
303
|
description="""Contains the system prompt""",
|
|
309
304
|
extra="multiline,advanced",
|
|
310
305
|
)
|
|
306
|
+
prompt: str = Field(
|
|
307
|
+
None,
|
|
308
|
+
description="""Contains the prompt""",
|
|
309
|
+
extra="multiline",
|
|
310
|
+
)
|
|
311
311
|
temperature: float = Field(
|
|
312
312
|
0.1,
|
|
313
313
|
description="""What sampling temperature to use, between 0 and 2.
|
|
@@ -48,8 +48,8 @@ openai_vision = "pyconverters_openai_vision.openai_vision:OpenAIVisionConverter"
|
|
|
48
48
|
deepinfra_openai_vision = "pyconverters_openai_vision.openai_vision:DeepInfraOpenAIVisionConverter"
|
|
49
49
|
# azure_openai_vision = "pyconverters_openai_vision.openai_vision:AzureOpenAIVisionConverter"
|
|
50
50
|
[tool.flit.entrypoints."pyprocessors.plugins"]
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
openai_vision_proc = "pyconverters_openai_vision.openai_vision:OpenAIVisionProcessor"
|
|
52
|
+
deepinfra_openai_vision_proc = "pyconverters_openai_vision.openai_vision:DeepInfraOpenAIVisionProcessor"
|
|
53
53
|
|
|
54
54
|
[tool.flit.metadata.requires-extra]
|
|
55
55
|
test = [
|
|
@@ -42,13 +42,13 @@ entry_points = \
|
|
|
42
42
|
'pyconverters_openai_vision.openai_vision:DeepInfraOpenAIVisionConverter',
|
|
43
43
|
'openai_vision = '
|
|
44
44
|
'pyconverters_openai_vision.openai_vision:OpenAIVisionConverter'],
|
|
45
|
-
'pyprocessors.plugins': ['
|
|
45
|
+
'pyprocessors.plugins': ['deepinfra_openai_vision_proc = '
|
|
46
46
|
'pyconverters_openai_vision.openai_vision:DeepInfraOpenAIVisionProcessor',
|
|
47
|
-
'
|
|
47
|
+
'openai_vision_proc = '
|
|
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.32',
|
|
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
|
{pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/colducoq.jpg
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/data/webinar.png
RENAMED
|
File without changes
|
{pyconverters_openai_vision-0.5.30 → pyconverters_openai_vision-0.5.32}/tests/test_openai_vision.py
RENAMED
|
File without changes
|
|
File without changes
|