llama-index-llms-openai 0.3.26__tar.gz → 0.3.27__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.3.26
3
+ Version: 0.3.27
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -296,7 +296,13 @@ def to_openai_message_dict(
296
296
  elif isinstance(block, ImageBlock):
297
297
  if block.url:
298
298
  content.append(
299
- {"type": "image_url", "image_url": {"url": str(block.url)}}
299
+ {
300
+ "type": "image_url",
301
+ "image_url": {
302
+ "url": str(block.url),
303
+ "detail": block.detail or "auto",
304
+ },
305
+ }
300
306
  )
301
307
  else:
302
308
  img_bytes = block.resolve_image(as_base64=True).read()
@@ -306,7 +312,7 @@ def to_openai_message_dict(
306
312
  "type": "image_url",
307
313
  "image_url": {
308
314
  "url": f"data:{block.image_mimetype};base64,{img_str}",
309
- "detail": block.detail or "low",
315
+ "detail": block.detail or "auto",
310
316
  },
311
317
  }
312
318
  )
@@ -29,7 +29,7 @@ exclude = ["**/BUILD"]
29
29
  license = "MIT"
30
30
  name = "llama-index-llms-openai"
31
31
  readme = "README.md"
32
- version = "0.3.26"
32
+ version = "0.3.27"
33
33
 
34
34
  [tool.poetry.dependencies]
35
35
  python = ">=3.9,<4.0"