pyconverters-openai_vision 0.5.54__tar.gz → 0.5.56__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.
Files changed (25) hide show
  1. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/PKG-INFO +1 -1
  2. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/pyconverters_openai_vision/__init__.py +1 -1
  3. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/pyconverters_openai_vision/openai_vision.py +2 -2
  4. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/setup.py +1 -1
  5. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/.dockerignore +0 -0
  6. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/.gitignore +0 -0
  7. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/Dockerfile +0 -0
  8. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/Jenkinsfile +0 -0
  9. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/README.md +0 -0
  10. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/bumpversion.py +0 -0
  11. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/pyconverters_openai_vision/openai_utils.py +0 -0
  12. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/pyproject.toml +0 -0
  13. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/__init__.py +0 -0
  14. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages.json +0 -0
  15. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_alts.json +0 -0
  16. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_descs.json +0 -0
  17. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_gpt-4.1-mini.json +0 -0
  18. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_gpt-4.1-nano.json +0 -0
  19. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_gpt-4o-mini.json +0 -0
  20. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/ENG product fact files_general offer_2025_30pages_gpt-4o.json +0 -0
  21. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/PC_Kairntech_LLM_v1.md.json +0 -0
  22. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/colducoq.jpg +0 -0
  23. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/data/webinar.png +0 -0
  24. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tests/test_openai_vision.py +0 -0
  25. {pyconverters_openai_vision-0.5.54 → pyconverters_openai_vision-0.5.56}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyconverters-openai_vision
3
- Version: 0.5.54
3
+ Version: 0.5.56
4
4
  Summary: OpenAIVision converter
5
5
  Home-page: https://kairntech.com/
6
6
  Author: Olivier Terrier
@@ -1,2 +1,2 @@
1
1
  """OpenAIVision converter"""
2
- __version__ = "0.5.54"
2
+ __version__ = "0.5.56"
@@ -407,11 +407,11 @@ def regex_sub_preserve_spans(
407
407
  if spans is not None:
408
408
  new_spans = []
409
409
  for span in spans:
410
- if span.start not in char_map or span.end - 1 not in char_map:
410
+ if span.start not in char_map or span.end not in char_map:
411
411
  continue
412
412
 
413
413
  new_start = char_map[span.start]
414
- new_end = char_map[span.end - 1] + 1
414
+ new_end = min(char_map[span.end], len(new_text))
415
415
 
416
416
  new_span = Sentence(
417
417
  start=new_start,
@@ -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.54',
51
+ version='0.5.56',
52
52
  description='OpenAIVision converter',
53
53
  author='Olivier Terrier',
54
54
  author_email='olivier.terrier@kairntech.com',