fix: base url wrong (#9040)

This commit is contained in:
Ari Webb
2026-01-22 14:59:49 -08:00
committed by Caren Thomas
parent 57ab117437
commit e5afbd0972

View File

@@ -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