aiDatasourceProvider top-level property
- @ProviderFor.new(aiDatasource)
final
The active AI datasource, based on the user's selected provider.
On web, direct calls to provider APIs (api.anthropic.com etc.) are blocked by CORS preflight, so we unconditionally route through the Supabase ai-proxy Edge Function. This mirrors the listModelsViaProxy precedent and ignores useAiProxyProvider — CORS is a transport limitation, not a user preference. Stateless callers (settings test connection, chat fallback) get a default explore-mode proxy with no topic.
Copied from aiDatasource.
Implementation
@ProviderFor(aiDatasource)
final aiDatasourceProvider = Provider<AiDatasource>.internal(
aiDatasource,
name: r'aiDatasourceProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$aiDatasourceHash,
dependencies: null,
allTransitiveDependencies: null,
);