Skip to content

Commit

Permalink
Modifies front-end to expect provider_name
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Jan 9, 2024
1 parent 30586f6 commit 2b90617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -273,7 +273,7 @@ export function ChatSettings(): JSX.Element {
{server.lmProviders.providers.map(lmp =>
lmp.models.map(lm => (
<MenuItem value={`${lmp.id}:${lm}`}>
{lmp.name} :: {lm}
{lmp.provider_name} :: {lm}
</MenuItem>
))
)}
Expand Down Expand Up @@ -316,7 +316,7 @@ export function ChatSettings(): JSX.Element {
.filter(em => em !== '*') // TODO: support registry providers
.map(em => (
<MenuItem value={`${emp.id}:${em}`}>
{emp.name} :: {em}
{emp.provider_name} :: {em}
</MenuItem>
))
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/jupyter-ai/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export namespace AiService {

export type ListProvidersEntry = {
id: string;
name: string;
provider_name: string;
model_id_label?: string;
models: string[];
help?: string;
Expand Down

0 comments on commit 2b90617

Please sign in to comment.