hera_client

package
v1.0.0-beta.rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const HeraEndpoint = "https://hera.zeus.fyi"
View Source
const HeraLocalEndpoint = "http://localhost:9008"

Variables

This section is empty.

Functions

This section is empty.

Types

type HeraClient

type HeraClient struct {
	resty_base.Resty
}

func NewDefaultHeraClient

func NewDefaultHeraClient(bearer string) HeraClient

func NewHeraClient

func NewHeraClient(baseURL, bearer string) HeraClient

func NewLocalHeraClient

func NewLocalHeraClient(bearer string) HeraClient

func (*HeraClient) GetTokenApproximate

func (h *HeraClient) GetTokenApproximate(prompt string) int

func (*HeraClient) UploadFiles

func (h *HeraClient) UploadFiles(ctx context.Context, p filepaths.Path, model, maxTokens string) (gogpt.CompletionResponse, error)

func (*HeraClient) ZipFilesInPath

func (h *HeraClient) ZipFilesInPath(p *filepaths.Path) error

Jump to

Keyboard shortcuts

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