discontinuedPackage flutter_code_crafter has been discontinued and replaced by code_forge.

OpenAiCompatible class sealed

Inheritance
Implementers

Properties

apiKey → String?
API key for the AI service, if required.
no setterinherited
baseUrl → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Headers to include in the HTTP request.
no setteroverride
instruction → String
finalinherited
model → String?
The model to use for AI completion, if applicable.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
API Url
no setteroverride

Methods

buildRequest(String code) → Map<String, dynamic>
override
completionResponse(String code) → Future<String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
responseParser(dynamic response) → String
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited