llama-index-llms-openai 0.5.1__py3-none-any.whl → 0.5.2__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.
@@ -16,7 +16,6 @@ from typing import (
16
16
  Type,
17
17
  Union,
18
18
  cast,
19
- get_args,
20
19
  runtime_checkable,
21
20
  )
22
21
 
@@ -65,7 +64,6 @@ from llama_index.core.program.utils import FlexibleModel
65
64
  from llama_index.core.types import BaseOutputParser, PydanticProgramMode
66
65
  from llama_index.llms.openai.utils import (
67
66
  O1_MODELS,
68
- OpenAIToolCall,
69
67
  create_retry_decorator,
70
68
  from_openai_completion_logprobs,
71
69
  from_openai_message,
@@ -980,10 +978,8 @@ class OpenAI(FunctionCallingLLM):
980
978
 
981
979
  tool_selections = []
982
980
  for tool_call in tool_calls:
983
- if not isinstance(tool_call, get_args(OpenAIToolCall)):
984
- raise ValueError("Invalid tool_call object")
985
981
  if tool_call.type != "function":
986
- raise ValueError("Invalid tool type. Unsupported by OpenAI")
982
+ raise ValueError("Invalid tool type. Unsupported by OpenAI llm")
987
983
 
988
984
  # this should handle both complete and partial jsons
989
985
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llama-index-llms-openai
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: llama-index llms openai integration
5
5
  Author: llama-index
6
6
  License-Expression: MIT
@@ -1,9 +1,9 @@
1
1
  llama_index/llms/openai/__init__.py,sha256=8nmgixeXifQ4eVSgtCic54WxXqrrpXQPL4rhACWCSFs,229
2
- llama_index/llms/openai/base.py,sha256=8P_oyvdGGUWTaQffB_TxfWdk1ZbuSA3kekH-gbtYmB4,42293
2
+ llama_index/llms/openai/base.py,sha256=9KA3DD9yvgwu0wOe2hIH5IaHWjsPpru3_z5j0Zh6WlU,42134
3
3
  llama_index/llms/openai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  llama_index/llms/openai/responses.py,sha256=Tvlwhst3W_t7EQQCxtj8k-uW6iHmjQPMJ4dh23f-oWg,36182
5
5
  llama_index/llms/openai/utils.py,sha256=IdvbjJ2y5zWDkntoPgBZ2pGbcrYIbGbg1smoju2XkUI,29243
6
- llama_index_llms_openai-0.5.1.dist-info/METADATA,sha256=gvTbfEsuqlHJdeWwU8zFI0i-YPEXwCMOOL_WWgo7Eb8,3038
7
- llama_index_llms_openai-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- llama_index_llms_openai-0.5.1.dist-info/licenses/LICENSE,sha256=JPQLUZD9rKvCTdu192Nk0V5PAwklIg6jANii3UmTyMs,1065
9
- llama_index_llms_openai-0.5.1.dist-info/RECORD,,
6
+ llama_index_llms_openai-0.5.2.dist-info/METADATA,sha256=0VT5QHRZZ6iXJmunWjWzbPqMNmn-SGHjVuxXAKtGZzY,3038
7
+ llama_index_llms_openai-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ llama_index_llms_openai-0.5.2.dist-info/licenses/LICENSE,sha256=JPQLUZD9rKvCTdu192Nk0V5PAwklIg6jANii3UmTyMs,1065
9
+ llama_index_llms_openai-0.5.2.dist-info/RECORD,,