From a4f025111e043e2197af6beb2c33af119abe32db Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 20 May 2025 13:41:13 -0700 Subject: [PATCH] use parseProxyModelName for toolSupport --- core/llm/toolSupport.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 8a96a4d60..050f5e510 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -1,11 +1,11 @@ +import { parseProxyModelName } from "@continuedev/config-yaml"; + export const PROVIDER_TOOL_SUPPORT: Record< string, (model: string) => boolean | undefined > = { "continue-proxy": (model) => { - // see getContinueProxyModelName - const provider = model.split("/")[2]; - const _model = model.split("/")[3]; + const { provider, model: _model } = parseProxyModelName(model); if (provider && _model && provider !== "continue-proxy") { const fn = PROVIDER_TOOL_SUPPORT[provider]; if (fn) {