Documentation ¶
Index ¶
- type GCPClient
- func (c GCPClient) GenerateAudio(ctx context.Context, _ StoryParams, story string) ([]byte, error)
- func (c GCPClient) GenerateImage(_ context.Context, _ StoryParams, _ string) (string, error)
- func (c GCPClient) GenerateImagePrompt(ctx context.Context, _ StoryParams, story string) (string, error)
- func (c GCPClient) GenerateStory(ctx context.Context, params StoryParams) (string, error)
- type GPTResponse
- type OpenAIClient
- func (c OpenAIClient) GenerateAudio(_ context.Context, _ StoryParams, story string) ([]byte, error)
- func (c OpenAIClient) GenerateImage(_ context.Context, _ StoryParams, imagePrompt string) (string, error)
- func (c OpenAIClient) GenerateImagePrompt(_ context.Context, _ StoryParams, story string) (string, error)
- func (c OpenAIClient) GenerateStory(_ context.Context, params StoryParams) (string, error)
- type PereBodulClient
- type StoryParams
- type VertexAIClient
- func (c VertexAIClient) GenerateAudio(ctx context.Context, _ StoryParams, story string) ([]byte, error)
- func (c VertexAIClient) GenerateImage(_ context.Context, _ StoryParams, _ string) (string, error)
- func (c VertexAIClient) GenerateImagePrompt(ctx context.Context, params StoryParams, story string) (string, error)
- func (c VertexAIClient) GenerateStory(ctx context.Context, params StoryParams) (string, error)
- type Wizard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPClient ¶
type GCPClient struct { PredictionClient *aiplatform.PredictionClient TextToSpeechClient *texttospeech.Client PredictURL string }
func (GCPClient) GenerateAudio ¶
func (GCPClient) GenerateImage ¶
func (GCPClient) GenerateImagePrompt ¶
func (GCPClient) GenerateStory ¶
type GPTResponse ¶
type OpenAIClient ¶
type OpenAIClient struct {
OpenAIKey string
}
func (OpenAIClient) GenerateAudio ¶
func (c OpenAIClient) GenerateAudio(_ context.Context, _ StoryParams, story string) ([]byte, error)
func (OpenAIClient) GenerateImage ¶
func (c OpenAIClient) GenerateImage(_ context.Context, _ StoryParams, imagePrompt string) (string, error)
func (OpenAIClient) GenerateImagePrompt ¶
func (c OpenAIClient) GenerateImagePrompt(_ context.Context, _ StoryParams, story string) (string, error)
func (OpenAIClient) GenerateStory ¶
func (c OpenAIClient) GenerateStory(_ context.Context, params StoryParams) (string, error)
type PereBodulClient ¶
type PereBodulClient interface { GenerateStory(ctx context.Context, params StoryParams) (string, error) GenerateAudio(ctx context.Context, params StoryParams, story string) ([]byte, error) GenerateImage(ctx context.Context, params StoryParams, imagePrompt string) (string, error) GenerateImagePrompt(ctx context.Context, params StoryParams, story string) (string, error) }
var AIPlatform PereBodulClient // Deprecated
var OpenAI PereBodulClient
var VertexAI PereBodulClient
type StoryParams ¶
type VertexAIClient ¶
type VertexAIClient struct { GenAIClient *genai.Client TextToSpeechClient *texttospeech.Client }
func (VertexAIClient) GenerateAudio ¶
func (c VertexAIClient) GenerateAudio(ctx context.Context, _ StoryParams, story string) ([]byte, error)
func (VertexAIClient) GenerateImage ¶
func (c VertexAIClient) GenerateImage(_ context.Context, _ StoryParams, _ string) (string, error)
func (VertexAIClient) GenerateImagePrompt ¶
func (c VertexAIClient) GenerateImagePrompt(ctx context.Context, params StoryParams, story string) (string, error)
func (VertexAIClient) GenerateStory ¶
func (c VertexAIClient) GenerateStory(ctx context.Context, params StoryParams) (string, error)
Click to show internal directories.
Click to hide internal directories.