Skip to content

Commit

Permalink
fix selecting models with a colon in their ID (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Mar 7, 2024
1 parent 8842451 commit 9526b22
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 9526b22

Please sign in to comment.