mistral

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides Mistral API access for embeddings.

func NewClient

func NewClient(apiKey string) *Client

NewClient creates a Mistral API client.

func (*Client) Embed

func (c *Client) Embed(ctx context.Context, text string) ([]float32, error)

Embed returns a 1024-dimensional embedding for the given text.

func (*Client) Transcribe

func (c *Client) Transcribe(ctx context.Context, audioPath string) (string, error)

Transcribe sends an audio file to the Mistral audio transcription API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL