v1

package
v0.0.0-...-e105d0e Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChatCompletionStreamNotSupported = errors.NewBadRequest("streaming is not supported with this method, please use StreamChatCompletions")
	ErrChatCompletionNotSupported       = errors.NewInternalError("provider don't have chat Completion capabilities")
	ErrNoProviderAbleToServe            = errors.NewInternalError("none of the provider able to serve you")
	ErrRequiredHeaderNotExit            = errors.NewBadRequest(fmt.Sprintf("%s header is required", constants.XMSConfig))
)

Functions

This section is empty.

Types

type V1Handler

type V1Handler struct {
	llmv1connect.UnimplementedLLMServiceHandler
	promptv1connect.UnimplementedPromptRegistryServiceHandler
	// contains filtered or unexported fields
}

func NewHandlerV1

func NewHandlerV1(
	ingester ingester.Ingester,
	apikeyService *apikey.Service,
	promptService *prompt.Service,
	providerService *provider.Service,
	iProviderService *iprovider.Service,
) *V1Handler

func (*V1Handler) DeleteAPIKey

func (*V1Handler) ListAPIKeys

func (*V1Handler) ListModels

func (*V1Handler) ListProviders

func (*V1Handler) ListTrackingLogs

func (s *V1Handler) ListTrackingLogs(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[llmv1.LogResponse], error)

func (*V1Handler) StreamChatCompletions

Jump to

Keyboard shortcuts

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