OpenAiDatasource class
- Implemented types
Constructors
- OpenAiDatasource(Dio _dio, FlutterSecureStorage _storage, OpenAiAuthService _auth)
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
-
isConfigured(
) → Future< bool> -
Whether the provider is configured (API key stored or OAuth signed in).
override
-
listModels(
) → Future< List< AiModel> > -
Fetch available models from the provider's API.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
{required String systemPrompt, required List< Map< messages, int maxTokens = 4096}) → Future<String, String> >String> -
Send messages and return the complete assistant response.
override
-
streamMessage(
{required String systemPrompt, required List< Map< messages, int maxTokens = 4096}) → Stream<String, String> >String> -
Stream a response, yielding text deltas as they arrive.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited