vit_gpt_dart_api
library
Functions
askAssistant ({required String assistantId , required String threadId })
→ Stream <String >
createImageGenerationRepository ()
→ ImageGenerationRepository
createThread ()
→ Future <Conversation >
createThreadsRepository ()
→ ThreadsModel
createTranscriberRepository ()
→ TranscribeModel
deleteSavedThread (String id )
→ Future <void >
deleteThread (String id )
→ Future <void >
downloadTTSfile ({required String voice , required String input , Directory ? folder })
→ Future <File >
findAssistants ()
→ Future <List <Assistant > >
getApiToken ()
→ Future <String ? >
getMicSendMode ()
→ Future <MicSendMode >
getSavedGptModel ()
→ Future <GptModel ? >
getSavedThreadIds ()
→ Future <List <String > >
getSavedThreadsTtl ()
→ Future <Duration >
getThreadsTitle (Iterable <String > ids )
→ Future <Map <String , String > >
getThreadTitle (String id )
→ Future <String ? >
getTranscriptionLanguage ()
→ Future <String ? >
getTtsQuality ()
→ Future <bool >
Returns true for high quality.
loadThread (String id )
→ Future <Conversation ? >
loadThreadMessages (String threadId )
→ Future <List <Message > >
saveGptModel (GptModel model )
→ Future <void >
saveMicSendMode (MicSendMode mode )
→ Future <void >
saveThread (String threadId , Map <String , String > metadata )
→ Future <void >
saveThreadId (String id )
→ Future <void >
saveThreadsTtl (Duration duration )
→ Future <void >
saveThreadTitle (String id , String title )
→ Future <void >
saveTranscriptionLanguage (String lang )
→ Future <void >
saveTtsQuality (bool highQuality )
→ Future <void >
setupFactories ({AudioRecorderModel recorder ()?, LocalStorageModel localStorage ()?, TTSModel tts ()?, SimpleAudioPlayer simplePlayerFactory (File file )? })
→ void
Sets up the factories for components that required them. Such as
classes or methods needing the recorder to have been set.
transcribe (File file )
→ Future <String >
updateApiToken (String token )
→ Future <void >