Refactor/model credential (#24994)

This commit is contained in:
zxhlyh 2025-09-03 13:36:59 +08:00 • committed by GitHub
commit 9e125e2029
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 1226 additions and 596 deletions

View file

@ -7,3 +7,9 @@ export const useCustomModels = (provider: ModelProvider) => {
return custom_models || []
}
export const useCanAddedModels = (provider: ModelProvider) => {
const { can_added_models } = provider.custom_configuration
return can_added_models || []
}