Skip to content

Commit

Permalink
Backport PR #682: Fix selecting models with a colon in their ID (#683)
Browse files Browse the repository at this point in the history
Co-authored-by: david qiu <[email protected]>
  • Loading branch information
meeseeksmachine and dlqqq authored Mar 7, 2024
1 parent a175d8b commit 44f968e
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 44f968e

Please sign in to comment.