feat: openrouter byok (#9148)
* feat: openrouter byok * new client is unnecessary * revert json diffs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user