Hello! :wave: I have a question about the differen...
# koog-agentic-framework
m
Hello! đź‘‹ I have a question about the difference between
OpenRouterLLMClient
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.
v
Hi! OpenRouter is generally OpenAI compatible API-wise, but has some slight differences. And specifically, model IDs are different, for example
OpenAIModels.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 error
m
Got it, thank you!