llama-index-llms-openai 0.4.4__tar.gz → 0.4.6__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llama-index-llms-openai
3
- Version: 0.4.4
3
+ Version: 0.4.6
4
4
  Summary: llama-index llms openai integration
5
5
  Author: llama-index
6
6
  License-Expression: MIT
@@ -49,6 +49,8 @@ O1_MODELS: Dict[str, int] = {
49
49
  "o3-mini-2025-01-31": 200000,
50
50
  "o3": 200000,
51
51
  "o3-2025-04-16": 200000,
52
+ "o3-pro": 200000,
53
+ "o3-pro-2025-06-10": 200000,
52
54
  "o4-mini": 200000,
53
55
  "o4-mini-2025-04-16": 200000,
54
56
  }
@@ -586,8 +588,11 @@ def to_openai_message_dicts(
586
588
  else:
587
589
  final_message_dicts.append(message_dicts)
588
590
  # this follows the logic of having a string-only input from to_openai_responses_message_dict
589
- if final_message_txt:
591
+ if final_message_txt and len(final_message_dicts) == 0:
590
592
  return final_message_txt
593
+ elif final_message_txt and len(final_message_dicts) > 0:
594
+ final_message_dicts.append({"role": "user", "content": final_message_txt})
595
+
591
596
  return final_message_dicts
592
597
  else:
593
598
  return [
@@ -27,7 +27,7 @@ dev = [
27
27
 
28
28
  [project]
29
29
  name = "llama-index-llms-openai"
30
- version = "0.4.4"
30
+ version = "0.4.6"
31
31
  description = "llama-index llms openai integration"
32
32
  authors = [{name = "llama-index"}]
33
33
  requires-python = ">=3.9,<4.0"