Mikolaj
08/30/2025, 3:30 PMOpenRouterLLMClient
and OpenAILLMClient
. Since OpenRouter claims to be OpenAI-compatible, I expected to be able to run inference on an OpenRouter model using OpenAILLMClient
. However, when I try, I run into an error.Vadim Briliantov
08/30/2025, 8:23 PMOpenAIModels.Chat.Gpt4o
has id "gpt-4o"
while OpenRouterModels.GPT4o
has id = "openai/gpt-4o"
(obviously, because OpenRouter supports not only OpenAI but also Anthropic and Gerini models, for example — hence, they needed to come up with some distinguishing in their IDs). That is the main reason why you’re getting the errorMikolaj
08/31/2025, 12:06 PM