aihandler

package
v0.0.0-...-0f05417 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(oai *openai.Client, googleAI *genai.Client) *Handler

func (*Handler) GetImageFromPrompt

func (h *Handler) GetImageFromPrompt(prompt string) (string, error)

func (*Handler) GetPromptResponse

func (h *Handler) GetPromptResponse(prompt string, userInput string, model string, maxTokens int) (string, error)

func (*Handler) GetPromptResponseGoogle

func (h *Handler) GetPromptResponseGoogle(prompt string, userInput string, maxTokens int) (string, error)

func (*Handler) GetPromptResponseOAI

func (h *Handler) GetPromptResponseOAI(prompt string, userInput string, maxTokens int) (string, error)

Jump to

Keyboard shortcuts

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