llama-index-llms-openai 0.2.15__tar.gz → 0.3.0__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,17 +1,17 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.2.15
3
+ Version: 0.3.0
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
7
- Requires-Python: >=3.8.1,<4.0
7
+ Requires-Python: >=3.9,<4.0
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  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
13
  Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: llama-index-core (>=0.11.7,<0.12.0)
14
+ Requires-Dist: llama-index-core (>=0.12.0,<0.13.0)
15
15
  Requires-Dist: openai (>=1.40.0,<2.0.0)
16
16
  Description-Content-Type: text/markdown
17
17
 
@@ -478,6 +478,9 @@ class OpenAI(FunctionCallingLLM):
478
478
  else:
479
479
  delta = ChoiceDelta()
480
480
 
481
+ if delta is None:
482
+ continue
483
+
481
484
  # check if this chunk is the start of a function call
482
485
  if delta.tool_calls:
483
486
  is_function = True
@@ -729,6 +732,9 @@ class OpenAI(FunctionCallingLLM):
729
732
  delta = ChoiceDelta()
730
733
  first_chat_chunk = False
731
734
 
735
+ if delta is None:
736
+ continue
737
+
732
738
  # check if this chunk is the start of a function call
733
739
  if delta.tool_calls:
734
740
  is_function = True
@@ -29,12 +29,12 @@ exclude = ["**/BUILD"]
29
29
  license = "MIT"
30
30
  name = "llama-index-llms-openai"
31
31
  readme = "README.md"
32
- version = "0.2.15"
32
+ version = "0.3.0"
33
33
 
34
34
  [tool.poetry.dependencies]
35
- python = ">=3.8.1,<4.0"
35
+ python = ">=3.9,<4.0"
36
36
  openai = "^1.40.0"
37
- llama-index-core = "^0.11.7"
37
+ llama-index-core = "^0.12.0"
38
38
 
39
39
  [tool.poetry.group.dev.dependencies]
40
40
  ipython = "8.10.0"