providerapi

package
v1.0.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProviderRoutes

func AddProviderRoutes(mux *http.ServeMux, providerService providerservice.Service)

Types

type ConfigureRequest

type ConfigureRequest struct {
	APIKey       string `json:"apiKey"`
	APIKeyEnv    string `json:"apiKeyEnv"`
	BaseURL      string `json:"baseUrl"`
	DefaultModel string `json:"defaultModel"`
	Upsert       bool   `json:"upsert"`
	SetDefault   *bool  `json:"setDefault"`
}

type CreateConnectionRequest

type CreateConnectionRequest struct {
	Name      string `json:"name"`
	APIKey    string `json:"apiKey"`
	APIKeyEnv string `json:"apiKeyEnv"`
	BaseURL   string `json:"baseUrl"`
}

CreateConnectionRequest is the body of POST /providers/{providerType}/connections. Every field is optional unless the provider needs it (an API key or env reference for key-based providers, a base URL for self-hosted ones).

type UpdateConnectionRequest

type UpdateConnectionRequest struct {
	Name        *string `json:"name"`
	BaseURL     *string `json:"baseUrl"`
	APIKey      *string `json:"apiKey"`
	APIKeyEnv   *string `json:"apiKeyEnv"`
	ClearSecret bool    `json:"clearSecret"`
}

UpdateConnectionRequest is the body of PATCH /providers/connections/{id}. Absent fields are left unchanged.

Jump to

Keyboard shortcuts

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