Skip to content

Commit

Permalink
fix selecting models with a colon in their ID (jupyterlab#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Mar 7, 2024
1 parent fac4620 commit 783cea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/src/components/chat-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 783cea4

Please sign in to comment.