SyniModelCatalog class
Fetches + caches the Syni model catalog from syni-service
GET /v1/models.
Auth token and base URL are injected by the host SDK (synheart_core)
— syni-flutter does not own credentials. With no base URL configured,
or on any fetch failure (offline, non-200), the catalog falls back to
bundled — so it always returns something.
Constructors
-
SyniModelCatalog({String? baseUrl, Future<
String?> authToken()?, Client? httpClient})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
available(
{bool forceRefresh = false}) → Future< List< SyniModelOption> > -
Available models. Fetches
/v1/modelson first call (when a base URL is configured), caches the result, and falls back to bundled on any failure. PassforceRefresh: trueto re-fetch. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
bundled
→ List<
SyniModelOption> -
The bundled fallback catalog — always available, no network. Mirrors
syni-service'sGetDefaultModels. Kept in sync by hand for V1; once the manifest is authoritative this is purely an offline safety net.no setter