diff --git a/packages/jupyter-ai/src/components/chat-settings.tsx b/packages/jupyter-ai/src/components/chat-settings.tsx index fcfa55daa..9650334d0 100644 --- a/packages/jupyter-ai/src/components/chat-settings.tsx +++ b/packages/jupyter-ai/src/components/chat-settings.tsx @@ -404,8 +404,8 @@ function getModelLocalId(globalModelId: string) { return null; } - const components = globalModelId.split(':'); - return components[components.length - 1]; + const components = globalModelId.split(':').slice(1); + return components.join(':'); } function getProvider(