You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

use-custom-models.ts 212B

123456789
  1. import type {
  2. ModelProvider,
  3. } from '../../declarations'
  4. export const useCustomModels = (provider: ModelProvider) => {
  5. const { custom_models } = provider.custom_configuration
  6. return custom_models || []
  7. }