llama-index-llms-openai 0.3.6__py3-none-any.whl → 0.3.7__py3-none-any.whl

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.
@@ -59,6 +59,7 @@ from llama_index.core.llms.llm import ToolSelection
59
59
  from llama_index.core.llms.utils import parse_partial_json
60
60
  from llama_index.core.types import BaseOutputParser, Model, PydanticProgramMode
61
61
  from llama_index.llms.openai.utils import (
62
+ ALL_AVAILABLE_MODELS,
62
63
  O1_MODELS,
63
64
  OpenAIToolCall,
64
65
  create_retry_decorator,
@@ -218,7 +219,7 @@ class OpenAI(FunctionCallingLLM):
218
219
  description="Whether to use strict mode for invoking tools/using schemas.",
219
220
  )
220
221
  supports_content_blocks: bool = Field(
221
- default=True,
222
+ default=False,
222
223
  description="Whether the model supports content blocks in chat messages.",
223
224
  )
224
225
 
@@ -285,6 +286,7 @@ class OpenAI(FunctionCallingLLM):
285
286
  pydantic_program_mode=pydantic_program_mode,
286
287
  output_parser=output_parser,
287
288
  strict=strict,
289
+ supports_content_blocks=model in ALL_AVAILABLE_MODELS,
288
290
  **kwargs,
289
291
  )
290
292
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -0,0 +1,6 @@
1
+ llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
+ llama_index/llms/openai/base.py,sha256=bCJz2CqXRSI1Dfqv4QcvP69xm2i7uYkcZWhi5tOXk9E,36289
3
+ llama_index/llms/openai/utils.py,sha256=aF2gP-Aef7rMUIYp9bG2Ke45pNszl_Jagga781Hul-A,18335
4
+ llama_index_llms_openai-0.3.7.dist-info/METADATA,sha256=DLhC9DQyyPLbvbASGtZikZvrLmvyodZGXNcR2i7DG-4,3320
5
+ llama_index_llms_openai-0.3.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ llama_index_llms_openai-0.3.7.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
- llama_index/llms/openai/base.py,sha256=oyXczVpX-IF9MvTZ1xDY7OpiEmlywwiG1eTsyUGFrns,36195
3
- llama_index/llms/openai/utils.py,sha256=aF2gP-Aef7rMUIYp9bG2Ke45pNszl_Jagga781Hul-A,18335
4
- llama_index_llms_openai-0.3.6.dist-info/METADATA,sha256=ZzJAPLc3-rJCZG76WUO9uJuCLYlU14dLUQqNTWcnvAg,3320
5
- llama_index_llms_openai-0.3.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- llama_index_llms_openai-0.3.6.dist-info/RECORD,,