mirror of
https://github.com/langgenius/dify.git
synced 2026-02-18 17:04:41 +08:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import type {
|
|
ModelProvider,
|
|
} from '../../declarations'
|
|
|
|
export const useCustomModels = (provider: ModelProvider) => {
|
|
const { custom_models } = provider.custom_configuration
|
|
|
|
return custom_models || []
|
|
}
|
|
|
|
export const useCanAddedModels = (provider: ModelProvider) => {
|
|
const { can_added_models } = provider.custom_configuration
|
|
|
|
return can_added_models || []
|
|
}
|