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
Click to show internal directories.
Click to hide internal directories.