ai icon indicating copy to clipboard operation
ai copied to clipboard

Can't extract type for valid providers from provider registry

Open AndrewIngram opened this issue 8 months ago • 0 comments

Description

If I create a provider registry, I can't extract the actual list of valid models:

Image

It works as expected when I interact with the registry directly:

Image

But if I want to wrap the API and pass the model to it, I lose the type-safety:

Image

Is there a more appropriate way to extract this type, or do the types in the library need to be adjusted to make this more feasible?

AndrewIngram avatar Apr 14 '25 09:04 AndrewIngram