llama-index-llms-openai 0.3.19__py3-none-any.whl → 0.3.20__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/utils.py +5 -1
- {llama_index_llms_openai-0.3.19.dist-info → llama_index_llms_openai-0.3.20.dist-info}/METADATA +1 -1
- llama_index_llms_openai-0.3.20.dist-info/RECORD +7 -0
- llama_index_llms_openai-0.3.19.dist-info/RECORD +0 -7
- {llama_index_llms_openai-0.3.19.dist-info → llama_index_llms_openai-0.3.20.dist-info}/WHEEL +0 -0
llama_index/llms/openai/utils.py
CHANGED
|
@@ -354,7 +354,11 @@ def to_openai_message_dict(
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
# TODO: O1 models do not support system prompts
|
|
357
|
-
if
|
|
357
|
+
if (
|
|
358
|
+
model is not None
|
|
359
|
+
and model in O1_MODELS
|
|
360
|
+
and model not in O1_MODELS_WITHOUT_FUNCTION_CALLING
|
|
361
|
+
):
|
|
358
362
|
if message_dict["role"] == "system":
|
|
359
363
|
message_dict["role"] = "developer"
|
|
360
364
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
|
|
2
|
+
llama_index/llms/openai/base.py,sha256=9HBszflpKp81gRSMaWKVa4PnG6sLfV9mWOyAkTM7MUI,38055
|
|
3
|
+
llama_index/llms/openai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
llama_index/llms/openai/utils.py,sha256=rQJ5B_griANqC4oNbkhgtjWijytLfG0HLlvYh9qCjv4,20708
|
|
5
|
+
llama_index_llms_openai-0.3.20.dist-info/METADATA,sha256=V4PGur14J6RiUC8S1YDDfuVTav3smCXx6dN-baidtng,3322
|
|
6
|
+
llama_index_llms_openai-0.3.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
7
|
+
llama_index_llms_openai-0.3.20.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
|
|
2
|
-
llama_index/llms/openai/base.py,sha256=9HBszflpKp81gRSMaWKVa4PnG6sLfV9mWOyAkTM7MUI,38055
|
|
3
|
-
llama_index/llms/openai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
llama_index/llms/openai/utils.py,sha256=iccv7WhW6a_h2c6uIVNkxsgVTKav79B3z3Xb4bxmCeM,20624
|
|
5
|
-
llama_index_llms_openai-0.3.19.dist-info/METADATA,sha256=0-WvrMN-0zlSjShW6GAYPC4mukiPoQBwPsbeQsfos3o,3322
|
|
6
|
-
llama_index_llms_openai-0.3.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
7
|
-
llama_index_llms_openai-0.3.19.dist-info/RECORD,,
|
|
File without changes
|