letta-nightly 0.11.7.dev20250922104202__py3-none-any.whl → 0.11.7.dev20250923104125__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.
@@ -117,6 +117,13 @@ def requires_auto_tool_choice(llm_config: LLMConfig) -> bool:
117
117
  return False
118
118
 
119
119
 
120
+ def supports_content_none(llm_config: LLMConfig) -> bool:
121
+ """Certain providers don't support the content None."""
122
+ if "gpt-oss" in llm_config.model:
123
+ return False
124
+ return True
125
+
126
+
120
127
  class OpenAIClient(LLMClientBase):
121
128
  def _prepare_client_kwargs(self, llm_config: LLMConfig) -> dict:
122
129
  api_key, _, _ = self.get_byok_overrides(llm_config)
@@ -210,6 +217,11 @@ class OpenAIClient(LLMClientBase):
210
217
  if force_tool_call is not None:
211
218
  tool_choice = ToolFunctionChoice(type="function", function=ToolFunctionChoiceFunctionCall(name=force_tool_call))
212
219
 
220
+ if not supports_content_none(llm_config):
221
+ for message in openai_message_list:
222
+ if message.content is None:
223
+ message.content = ""
224
+
213
225
  data = ChatCompletionRequest(
214
226
  model=model,
215
227
  messages=fill_image_content_in_messages(openai_message_list, messages),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letta-nightly
3
- Version: 0.11.7.dev20250922104202
3
+ Version: 0.11.7.dev20250923104125
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  Author-email: Letta Team <contact@letta.com>
6
6
  License: Apache License
@@ -113,7 +113,7 @@ letta/llm_api/llm_client.py,sha256=iXiPbrhluP2DBczv9nkFlAXdwWGOkg0lNDA9LzLrG4o,3
113
113
  letta/llm_api/llm_client_base.py,sha256=8vnkEm7DPdHuGd3uaMAtZ_y-N5AQJJs-vXvN45TC10Y,9916
114
114
  letta/llm_api/mistral.py,sha256=ruOTBt07Uzx7S30_eXhedVWngtpjtlzG6Ox1Iw0_mQs,662
115
115
  letta/llm_api/openai.py,sha256=56cwdS9l-75cMTtY9df6Dbb1M9crH8YQsSdF3Pm3Rpg,27393
116
- letta/llm_api/openai_client.py,sha256=QDIRIG-4MVA-Jug8qx0HUkhg3qtUfHGvE6QCbSYGK-c,22597
116
+ letta/llm_api/openai_client.py,sha256=KyJsJOZrOugO9wOLlcPquwxSze4rMo6vSOFAq_gLwtM,22976
117
117
  letta/llm_api/together_client.py,sha256=HeDMDDa525yfDTKciODDfX_t93QBfFmX0n2P-FT1QTU,2284
118
118
  letta/llm_api/xai_client.py,sha256=3mpSQ9OoWyjqo2VhNM_m0EPBzS69r4p-OEwL7UWc9oY,3772
119
119
  letta/llm_api/sample_response_jsons/aws_bedrock.json,sha256=RS3VqyxPB9hQQCPm42hWoga0bisKv_0e8ZF-c3Ag1FA,930
@@ -465,8 +465,8 @@ letta/templates/sandbox_code_file.py.j2,sha256=eXga5J_04Z8-pGdwfOCDjcRnMceIqcF5i
465
465
  letta/templates/sandbox_code_file_async.py.j2,sha256=lb7nh_P2W9VZHzU_9TxSCEMUod7SDziPXgvT75xVds0,2748
466
466
  letta/templates/summary_request_text.j2,sha256=ZttQwXonW2lk4pJLYzLK0pmo4EO4EtUUIXjgXKiizuc,842
467
467
  letta/types/__init__.py,sha256=hokKjCVFGEfR7SLMrtZsRsBfsC7yTIbgKPLdGg4K1eY,147
468
- letta_nightly-0.11.7.dev20250922104202.dist-info/METADATA,sha256=3Ky4RfQfM5oRFWpvwQ63UD9f6sKQWCLnc6FbBklhGWM,24546
469
- letta_nightly-0.11.7.dev20250922104202.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
470
- letta_nightly-0.11.7.dev20250922104202.dist-info/entry_points.txt,sha256=m-94Paj-kxiR6Ktu0us0_2qfhn29DzF2oVzqBE6cu8w,41
471
- letta_nightly-0.11.7.dev20250922104202.dist-info/licenses/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
472
- letta_nightly-0.11.7.dev20250922104202.dist-info/RECORD,,
468
+ letta_nightly-0.11.7.dev20250923104125.dist-info/METADATA,sha256=rn0TTgLpI3h_SJNOH9cVlx7YprtU4swC6Lle22fpswE,24546
469
+ letta_nightly-0.11.7.dev20250923104125.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
470
+ letta_nightly-0.11.7.dev20250923104125.dist-info/entry_points.txt,sha256=m-94Paj-kxiR6Ktu0us0_2qfhn29DzF2oVzqBE6cu8w,41
471
+ letta_nightly-0.11.7.dev20250923104125.dist-info/licenses/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
472
+ letta_nightly-0.11.7.dev20250923104125.dist-info/RECORD,,