Skip to content

Commit

Permalink
Provider list: display models available in the builder (#8116)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Oct 21, 2024
1 parent 59d1d58 commit bfac2ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions front/components/workspace/ProviderManagementModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import {
} from "@dust-tt/sparkle";
import type { ModelProviderIdType, WorkspaceType } from "@dust-tt/types";
import { EMBEDDING_PROVIDER_IDS } from "@dust-tt/types";
import { MODEL_PROVIDER_IDS, SUPPORTED_MODEL_CONFIGS } from "@dust-tt/types";
import { MODEL_PROVIDER_IDS } from "@dust-tt/types";
import { isEqual } from "lodash";
import { useCallback, useContext, useMemo, useState } from "react";

import { MODEL_PROVIDER_LOGOS } from "@app/components/providers/types";
import {
MODEL_PROVIDER_LOGOS,
USED_MODEL_CONFIGS,
} from "@app/components/providers/types";
import { SendNotificationsContext } from "@app/components/sparkle/Notification";

interface ProviderManagementModalProps {
Expand All @@ -31,7 +34,7 @@ const prettyfiedProviderNames: { [key in ModelProviderIdType]: string } = {
};

const modelProviders: Record<ModelProviderIdType, string[]> =
SUPPORTED_MODEL_CONFIGS.reduce(
USED_MODEL_CONFIGS.reduce(
(acc, model) => {
if (!model.isLegacy) {
acc[model.providerId] = acc[model.providerId] || [];
Expand Down

0 comments on commit bfac2ee

Please sign in to comment.