Documentation
¶
Index ¶
- func AnthropicDefaultModelAliases() map[types.DefaultModelAliasType]string
- func OpenAIDefaultModelAliases() map[types.DefaultModelAliasType]string
- type Handler
- func (h *Handler) BackPopulateModels(req router.Request, _ router.Response) error
- func (h *Handler) CleanupModelProvider(req router.Request, _ router.Response) error
- func (h *Handler) EnsureAnthropicCredentialAndDefaults(ctx context.Context, c client.Client) error
- func (h *Handler) EnsureOpenAIEnvCredentialAndDefaults(ctx context.Context, c client.Client) error
- func (h *Handler) PollRegistries(ctx context.Context, c client.Client)
- func (h *Handler) Populate(req router.Request, resp router.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnthropicDefaultModelAliases ¶ added in v0.18.0
func AnthropicDefaultModelAliases() map[types.DefaultModelAliasType]string
func OpenAIDefaultModelAliases ¶ added in v0.18.0
func OpenAIDefaultModelAliases() map[types.DefaultModelAliasType]string
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(gptClient *gptscript.GPTScript, dispatcher *dispatcher.Dispatcher, registryURLs []string, supportDocker bool, ) *Handler
func (*Handler) BackPopulateModels ¶
func (*Handler) CleanupModelProvider ¶
func (*Handler) EnsureAnthropicCredentialAndDefaults ¶ added in v0.9.0
func (*Handler) EnsureOpenAIEnvCredentialAndDefaults ¶
func (*Handler) PollRegistries ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.