feat: openrouter byok (#9148)

* feat: openrouter byok

* new client is unnecessary

* revert json diffs
This commit is contained in:
Ari Webb
2026-01-28 12:13:13 -08:00
committed by Caren Thomas
parent d992aa0df4
commit 9ce1249738
13 changed files with 110 additions and 35 deletions

View File

@@ -70,7 +70,7 @@ class LettaLLMStreamAdapter(LettaLLMAdapter):
run_id=self.run_id,
step_id=step_id,
)
elif self.llm_config.model_endpoint_type == ProviderType.openai:
elif self.llm_config.model_endpoint_type in [ProviderType.openai, ProviderType.openrouter]:
# For non-v1 agents, always use Chat Completions streaming interface
self.interface = OpenAIStreamingInterface(
use_assistant_message=use_assistant_message,