llama-index-llms-openai 0.3.10__py3-none-any.whl → 0.3.11__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.
@@ -34,6 +34,8 @@ DEFAULT_OPENAI_API_BASE = "https://api.openai.com/v1"
34
34
  DEFAULT_OPENAI_API_VERSION = ""
35
35
 
36
36
  O1_MODELS: Dict[str, int] = {
37
+ "o1": 200000,
38
+ "o1-2024-12-17": 200000,
37
39
  "o1-preview": 128000,
38
40
  "o1-preview-2024-09-12": 128000,
39
41
  "o1-mini": 128000,
@@ -304,7 +306,7 @@ def to_openai_message_dict(
304
306
  # TODO: O1 models do not support system prompts
305
307
  if model is not None and model in O1_MODELS:
306
308
  if message_dict["role"] == "system":
307
- message_dict["role"] = "user"
309
+ message_dict["role"] = "developer"
308
310
 
309
311
  # NOTE: openai messages have additional arguments:
310
312
  # - function messages have `name`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Requires-Dist: llama-index-core (>=0.12.4,<0.13.0)
15
- Requires-Dist: openai (>=1.57.1,<2.0.0)
15
+ Requires-Dist: openai (>=1.58.1,<2.0.0)
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  # LlamaIndex Llms Integration: Openai
@@ -0,0 +1,6 @@
1
+ llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
+ llama_index/llms/openai/base.py,sha256=_kW22tTABTKQ-GFRN00P5OOcJS4IeVAI3vPqbjw1D8o,35777
3
+ llama_index/llms/openai/utils.py,sha256=cHtOBsMQFHoX1MKu4BBB49YcXg4i5uUC6rOuXdxYixw,18452
4
+ llama_index_llms_openai-0.3.11.dist-info/METADATA,sha256=o6jHbJGHQDT26jsV0oluYiE-qmI6F7US_WnCGbGtd_U,3321
5
+ llama_index_llms_openai-0.3.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ llama_index_llms_openai-0.3.11.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=_kW22tTABTKQ-GFRN00P5OOcJS4IeVAI3vPqbjw1D8o,35777
3
- llama_index/llms/openai/utils.py,sha256=q4qfub-sbjdfszucQCIXUyxc54_SKNM5xt84GXjKaXY,18400
4
- llama_index_llms_openai-0.3.10.dist-info/METADATA,sha256=cDAY7NIsXdQDMDThNsifONnFKcsmWsbCaqeJw8TwXH0,3321
5
- llama_index_llms_openai-0.3.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- llama_index_llms_openai-0.3.10.dist-info/RECORD,,