Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLM ¶
type LLM interface { Client Completion(ctx context.Context, ms []Message, t ability.LLMOption) (string, error) // CompletionStream // // return a chunk that contains an error if stream is not supported CompletionStream(ctx context.Context, ms []Message, t ability.LLMOption) *util.SmoothStream SetAbility(ctx context.Context, a *ability.LLMAblt) error // Support // // read ability.LLMOption to check if current provider support the option Support(o ability.LLMOption) bool }
type SpeechToText ¶
type SpeechToText interface { Client // SpeechToText transcribes voice into text SpeechToText(ctx context.Context, audio io.Reader, fileName string, option ability.STTOption) (string, error) SetAbility(ctx context.Context, a *ability.STTAblt) error // Support // // read ability.STTOption to check if current provider support the option Support(o ability.STTOption) bool }
type TextToSpeech ¶
type TextToSpeech interface { Client // TextToSpeech // text is the result of removing code from originalText by calling RemoveCodeFromText TextToSpeech(ctx context.Context, text string, originalText string, o ability.TTSOption) ([]byte, error) SetAbility(ctx context.Context, a *ability.TTSAblt) error // Support // // read ability.TTSOption to check if current provider support the option Support(o ability.TTSOption) bool }
Click to show internal directories.
Click to hide internal directories.