mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
chore: type Provider.list() as Record<ProviderID, Info>, delete dead code (#18123)
This commit is contained in:
@@ -51,7 +51,7 @@ export const ModelsCommand = cmd({
|
||||
}
|
||||
|
||||
if (args.provider) {
|
||||
const provider = providers[args.provider]
|
||||
const provider = providers[ProviderID.make(args.provider)]
|
||||
if (!provider) {
|
||||
UI.error(`Provider not found: ${args.provider}`)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user