CustomProviderEntry constructor
CustomProviderEntry({
- required String name,
- required String apiType,
- required String baseUrl,
- required String modelId,
- String? keyName,
- CustomProviderAuthMethod authMethod = CustomProviderAuthMethod.apiKey,
- String? authHeader,
- Duration? connectTimeout,
- Duration? streamIdleTimeout,
- bool keyNotPersisted = false,
- String? project,
Creates an entry. keyName is the secure-store/env name holding the
API key (null = keyless); modelId is the last-used model.
authMethod selects the auth path for SSO/JWT providers. authHeader
names the auth header (issue #964): x-api-key sends
x-api-key: <key> instead of Authorization: Bearer <key>.
project is the CodeMie project picked at connect time (issue #1809):
sent as the x-codemie-project header on the entry's API requests.
Implementation
CustomProviderEntry({
required this.name,
required this.apiType,
required this.baseUrl,
required this.modelId,
this.keyName,
this.authMethod = CustomProviderAuthMethod.apiKey,
this.authHeader,
this.connectTimeout,
this.streamIdleTimeout,
this.keyNotPersisted = false,
this.project,
});