listModels abstract method

Future<List<String>> listModels(
  1. String apiKey
)

Models suitable for chat / completion, newest first. Returns an empty list for an unset / invalid key. Each provider filters out embeddings / vision / audio-only models so the dropdown isn't flooded with irrelevant entries.

Implementation

Future<List<String>> listModels(String apiKey);