package
0.0.0-20250106111003-1cd6921befab
Repository: https://github.com/netr/haki.git
Documentation: pkg.go.dev

# Functions

NewCardCreator creates a new AnkiController based on the given name and API key.
NewImageGenService creates a new ImageGen service with the given OpenAI API key.
NewOpenAICardCreator creates a new OpenAICardCreator with the given API key and an optional model type.
NewOpenAIClient creates a new OpenAI API client with the given API key and an optional model type.
NewTTSService creates a new TTS service with the given OpenAI API key.

# Constants

Supported API providers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Supported API providers.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Error variables for common error cases.
No description provided by the author
Error variables for common error cases.

# Structs

AnkiCard represents a single Anki flashcard with a front and back side.
No description provided by the author
ImageGenService is a service for generating text-to-speech audio.
OpenAICardCreator is an implementation of the AnkiController interface for OpenAI.
OpenAIClient wraps the OpenAI API client.
TTSService is a service for generating text-to-speech audio.

# Interfaces

AnkiController defines the interface for AI API providers.
No description provided by the author
ModelNamer represents an AI model with a string representation.
No description provided by the author

# Type aliases

APIProviderName represents the name of an AI API provider.
No description provided by the author