llama-index-llms-openai 0.2.7__py3-none-any.whl → 0.2.8__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.
@@ -76,6 +76,7 @@ from openai.types.chat.chat_completion_chunk import (
76
76
  ChoiceDeltaToolCall,
77
77
  )
78
78
  from llama_index.core.llms.utils import parse_partial_json
79
+ from llama_index.utils.openai import resolve_tool_choice
79
80
 
80
81
  import llama_index.core.instrumentation as instrument
81
82
 
@@ -873,9 +874,6 @@ class OpenAI(FunctionCallingLLM):
873
874
  **kwargs: Any,
874
875
  ) -> Dict[str, Any]:
875
876
  """Predict and call the tool."""
876
- from llama_index.agent.openai.utils import resolve_tool_choice
877
-
878
- # misralai uses the same openai tool format
879
877
  tool_specs = [tool.metadata.to_openai_tool() for tool in tools]
880
878
 
881
879
  # if strict is passed in, use, else default to the class-level attribute, else default to True`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -10,9 +10,8 @@ Classifier: Programming Language :: Python :: 3
10
10
  Classifier: Programming Language :: Python :: 3.9
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: llama-index-agent-openai (>=0.3.1,<0.4.0)
15
13
  Requires-Dist: llama-index-core (>=0.11.7,<0.12.0)
14
+ Requires-Dist: llama-index-utils-openai (>=0.1.0,<0.2.0)
16
15
  Requires-Dist: openai (>=1.40.0,<2.0.0)
17
16
  Description-Content-Type: text/markdown
18
17
 
@@ -0,0 +1,6 @@
1
+ llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
+ llama_index/llms/openai/base.py,sha256=JJf0cEUZFDJnQGWGfHYLQXwr4OYQEkn96fE1jd1HgLc,37029
3
+ llama_index/llms/openai/utils.py,sha256=n-7uzAE23knhSCxrDS-C87Xsm_icH1nPbrdZaMPxz5I,13642
4
+ llama_index_llms_openai-0.2.8.dist-info/METADATA,sha256=9fBTFVSF3GpEVZgPjDFS8yYelX5ZVgwS0bygQQiaRuE,654
5
+ llama_index_llms_openai-0.2.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
6
+ llama_index_llms_openai-0.2.8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.6.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,6 +0,0 @@
1
- llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
- llama_index/llms/openai/base.py,sha256=3_D2p15hJZwjAlA_fGBWqD7gPG1TcsaS65pEGhNRP5s,37096
3
- llama_index/llms/openai/utils.py,sha256=n-7uzAE23knhSCxrDS-C87Xsm_icH1nPbrdZaMPxz5I,13642
4
- llama_index_llms_openai-0.2.7.dist-info/METADATA,sha256=f84gfZu1WBl2RFKrcA2EiTlql9LpO7ritPhuNtqLyWs,705
5
- llama_index_llms_openai-0.2.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- llama_index_llms_openai-0.2.7.dist-info/RECORD,,