llama-index-llms-openai 0.4.5__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.5
3
+ Version: 0.4.6
4
4
  Summary: llama-index llms openai integration
5
5
  Author: llama-index
6
6
  License-Expression: MIT
@@ -588,8 +588,11 @@ def to_openai_message_dicts(
588
588
  else:
589
589
  final_message_dicts.append(message_dicts)
590
590
  # this follows the logic of having a string-only input from to_openai_responses_message_dict
591
- if final_message_txt:
591
+ if final_message_txt and len(final_message_dicts) == 0:
592
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
+
593
596
  return final_message_dicts
594
597
  else:
595
598
  return [
@@ -27,7 +27,7 @@ dev = [
27
27
 
28
28
  [project]
29
29
  name = "llama-index-llms-openai"
30
- version = "0.4.5"
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"