mirror of
https://github.com/langgenius/dify.git
synced 2026-07-29 16:29:36 +08:00
14 lines
370 B
TypeScript
14 lines
370 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 || []
|
|
}
|