llama-index-llms-openai 0.3.10__tar.gz → 0.3.11__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.
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/PKG-INFO +2 -2
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/llama_index/llms/openai/utils.py +3 -1
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/pyproject.toml +2 -2
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/README.md +0 -0
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/llama_index/llms/openai/__init__.py +0 -0
- {llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/llama_index/llms/openai/base.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-index-llms-openai
|
|
3
|
-
Version: 0.3.
|
|
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.
|
|
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
|
{llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/llama_index/llms/openai/utils.py
RENAMED
|
@@ -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"] = "
|
|
309
|
+
message_dict["role"] = "developer"
|
|
308
310
|
|
|
309
311
|
# NOTE: openai messages have additional arguments:
|
|
310
312
|
# - function messages have `name`
|
|
@@ -29,11 +29,11 @@ exclude = ["**/BUILD"]
|
|
|
29
29
|
license = "MIT"
|
|
30
30
|
name = "llama-index-llms-openai"
|
|
31
31
|
readme = "README.md"
|
|
32
|
-
version = "0.3.
|
|
32
|
+
version = "0.3.11"
|
|
33
33
|
|
|
34
34
|
[tool.poetry.dependencies]
|
|
35
35
|
python = ">=3.9,<4.0"
|
|
36
|
-
openai = "^1.
|
|
36
|
+
openai = "^1.58.1"
|
|
37
37
|
llama-index-core = "^0.12.4"
|
|
38
38
|
|
|
39
39
|
[tool.poetry.group.dev.dependencies]
|
|
File without changes
|
|
File without changes
|
{llama_index_llms_openai-0.3.10 → llama_index_llms_openai-0.3.11}/llama_index/llms/openai/base.py
RENAMED
|
File without changes
|