fix: add provider_type for OpenRouter models in model_settings (#169)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -27,8 +27,9 @@ function buildModelSettings(
|
||||
const isOpenAI = modelHandle.startsWith("openai/");
|
||||
const isAnthropic = modelHandle.startsWith("anthropic/");
|
||||
const isGoogleAI = modelHandle.startsWith("google_ai/");
|
||||
const isOpenRouter = modelHandle.startsWith("openrouter/");
|
||||
|
||||
if (isOpenAI) {
|
||||
if (isOpenAI || isOpenRouter) {
|
||||
const openaiSettings: OpenAIModelSettings = {
|
||||
provider_type: "openai",
|
||||
parallel_tool_calls: true,
|
||||
|
||||
Reference in New Issue
Block a user