Documentation
¶
Index ¶
- Variables
- func EntryModelRegions(entry map[string]any) []string
- func WaitForWorkerAuthManager(ctx context.Context, lookup func() (string, bool), ...) (string, error)
- type App
- func (a *App) Close() error
- func (a *App) FetchWorkerModelsFor(refresh bool, accountID string) ([]map[string]any, error)
- func (a *App) FetchWorkerModelsForMode(refresh bool, accountID string, mode control.CatalogMode) ([]map[string]any, error)
- func (a *App) Handler() http.Handler
- func (a *App) RebuildHTTP()
- func (a *App) RequestedAccount(r *http.Request) string
- type SecretStore
Constants ¶
This section is empty.
Variables ¶
View Source
var EnsureCheckinDisabledAccounts = control.EnsureCheckinDisabledAccounts
View Source
var EnsureCrossProviderModelPool = control.EnsureCrossProviderModelPool
View Source
var EnsureProxyAPIKey = control.EnsureProxyAPIKey
View Source
var EnsureProxyURL = control.EnsureProxyURL
View Source
var EnsureRoutingStrategy = control.EnsureRoutingStrategy
View Source
var EnsureWorkBuddyCheckinTime = control.EnsureWorkBuddyCheckinTime
View Source
var ErrWorkerNotWarm = qoder.ErrWorkerNotWarm
View Source
var GenerateAPIKey = control.GenerateAPIKey
Functions ¶
func EntryModelRegions ¶
Types ¶
type App ¶
type App struct {
Cfg config.Config
Auth auth.Verifier
Executor executor.ChatExecutor
Pool *executor.Pool
Manager *accountruntime.Manager
Control *appsvc.Services
Providers *providers.Registry
Recorder *applogs.RequestRecorder
Ring *applogs.Ring
SettingsMu sync.Mutex
CrossProviderModelPool atomic.Bool
Gateway *apigateway.Handler
Console *appconsole.Handler
Update *appupdate.Coordinator
HTTP *httpserver.Server
// contains filtered or unexported fields
}
App owns process resources and assembles gateway/console/server. It is not a service locator for individual modules.
func (*App) FetchWorkerModelsFor ¶
func (*App) FetchWorkerModelsForMode ¶
func (*App) RebuildHTTP ¶
func (a *App) RebuildHTTP()
type SecretStore ¶
type SecretStore = control.SecretStore
Click to show internal directories.
Click to hide internal directories.