Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteModel(ctx context.Context, model string) error
- func (c *Client) DownloadModel(ctx context.Context, path string, fn func(cur, total uint64)) (*schema.Model, error)
- func (c *Client) ListModels(ctx context.Context) ([]schema.Model, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Transcribe(ctx context.Context, req TranscriptionRequest) (*openai.TranscriptionResponse, error)
- func (c *Client) Translate(ctx context.Context, req TranslationRequest) (*TranscriptionResponse, error)
- type TranscriptionRequest
- type TranscriptionResponse
- type TranslationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DownloadModel ¶
func (*Client) ListModels ¶
func (*Client) Transcribe ¶
func (c *Client) Transcribe(ctx context.Context, req TranscriptionRequest) (*openai.TranscriptionResponse, error)
Transcribe performs a transcription request in the language of the speech
func (*Client) Translate ¶
func (c *Client) Translate(ctx context.Context, req TranslationRequest) (*TranscriptionResponse, error)
Translate performs a transcription request and returns the result in english
type TranscriptionRequest ¶
type TranscriptionRequest struct {
openai.TranscriptionRequest
Diarize *bool `json:"diarize,omitempty"`
}
type TranscriptionResponse ¶
type TranscriptionResponse struct {
openai.TranscriptionResponse
}
type TranslationRequest ¶
type TranslationRequest struct {
openai.TranslationRequest
Stream *bool `json:"stream,omitempty"`
Diarize *bool `json:"diarize,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.