aiclient

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 AiModel

type AiModel interface {
	Rewrite(string, chan<- *AiResponse)
	Close()
}

func NewGeminiAi

func NewGeminiAi(name, apiKey string) (AiModel, error)

type AiResponse

type AiResponse struct {
	Err       error
	ModelName *string `json:"-"`
	Result    string
}

type GeminiAi

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

func (*GeminiAi) Close

func (g *GeminiAi) Close()

func (*GeminiAi) Rewrite

func (g *GeminiAi) Rewrite(original string, responseChan chan<- *AiResponse)

Jump to

Keyboard shortcuts

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