From e5afbd09721111f82b01adf43472e9e80e0a4414 Mon Sep 17 00:00:00 2001 From: Ari Webb Date: Thu, 22 Jan 2026 14:59:49 -0800 Subject: [PATCH] fix: base url wrong (#9040) --- letta/services/provider_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letta/services/provider_manager.py b/letta/services/provider_manager.py index 1c227295..4628c5eb 100644 --- a/letta/services/provider_manager.py +++ b/letta/services/provider_manager.py @@ -955,8 +955,8 @@ class ProviderManager: # Determine the model endpoint - use provider's base_url if set, # otherwise use provider-specific defaults - if provider.base_url: - model_endpoint = provider.base_url + if typed_provider.base_url: + model_endpoint = typed_provider.base_url elif provider.provider_type == ProviderType.chatgpt_oauth: # ChatGPT OAuth uses the ChatGPT backend API, not a generic endpoint pattern from letta.schemas.providers.chatgpt_oauth import CHATGPT_CODEX_ENDPOINT