Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: add gpt-5.4 fast to oauth client (#9911)
Ari Webbdc9462a36bd9
diff --git a/letta/llm_api/chatgpt_oauth_client.py b/letta/llm_api/chatgpt_oauth_client.pyindex fd2a6364d..1befe9b91 100644--- a/letta/llm_api/chatgpt_oauth_client.py+++ b/letta/llm_api/chatgpt_oauth_client.py@@ -220,14 +220,24 @@ class ChatGPTOAuthClient(LLMClientBase):else:tool_choice = "auto"+ # Handle "fast" model variants → real model + priority service tier+ model = llm_config.model+ service_tier = None+ if model.endswith("-fast"):+ model = model.removesuffix("-fast")+ service_tier = "priority"+# Build request payload for ChatGPT backenddata: Dict[str, Any] = {- "model": llm_config.model,+ "model": model,"input": filtered_input,"store": False, # Required for stateless operation"stream": True, # ChatGPT backend requires streaming}+ if service_tier:+ data["service_tier"] = service_tier+if instructions:data["instructions"] = instructions