llama-index-llms-openai 0.2.15__py3-none-any.whl → 0.3.0__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.
- llama_index/llms/openai/base.py +6 -0
- {llama_index_llms_openai-0.2.15.dist-info → llama_index_llms_openai-0.3.0.dist-info}/METADATA +3 -3
- llama_index_llms_openai-0.3.0.dist-info/RECORD +6 -0
- llama_index_llms_openai-0.2.15.dist-info/RECORD +0 -6
- {llama_index_llms_openai-0.2.15.dist-info → llama_index_llms_openai-0.3.0.dist-info}/WHEEL +0 -0
llama_index/llms/openai/base.py
CHANGED
|
@@ -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
|
{llama_index_llms_openai-0.2.15.dist-info → llama_index_llms_openai-0.3.0.dist-info}/METADATA
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-index-llms-openai
|
|
3
|
-
Version: 0.
|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
|
|
2
|
+
llama_index/llms/openai/base.py,sha256=wg509NgBHVLgB1Z9bevMjJenu3BFf4WZvlGP40eVhj8,35460
|
|
3
|
+
llama_index/llms/openai/utils.py,sha256=VPRR9leKro1InT-12v1tE9qsu6DzFncmlIzHqApCPfo,16147
|
|
4
|
+
llama_index_llms_openai-0.3.0.dist-info/METADATA,sha256=c_108MozjVz1erz8Nj9brgj4pAZS_dKLT2jHoC07sX4,3320
|
|
5
|
+
llama_index_llms_openai-0.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
+
llama_index_llms_openai-0.3.0.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=3NCyT05dhooucu8hVURtfb1-Jv7uxRIRWM5JPcwuNk8,35332
|
|
3
|
-
llama_index/llms/openai/utils.py,sha256=VPRR9leKro1InT-12v1tE9qsu6DzFncmlIzHqApCPfo,16147
|
|
4
|
-
llama_index_llms_openai-0.2.15.dist-info/METADATA,sha256=xGV0Ts8V4rU9ySW63_xmKyq238H0rLL78e2pmnNz8mQ,3323
|
|
5
|
-
llama_index_llms_openai-0.2.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
-
llama_index_llms_openai-0.2.15.dist-info/RECORD,,
|
|
File without changes
|