Documentation
¶
Index ¶
- type Dispatcher
- func (d *Dispatcher) ListConfiguredAuthProviders(namespace string) []string
- func (d *Dispatcher) ModelsForProvider(ctx context.Context, modelProviderNamespace, modelProviderName string) (*openai.ModelsList, error)
- func (d *Dispatcher) ModelsForProviderWithEnv(ctx context.Context, modelProviderNamespace, modelProviderName string, ...) (*openai.ModelsList, error)
- func (d *Dispatcher) ScanFile(ctx context.Context, contents []byte) (bool, error)
- func (d *Dispatcher) StopAuthProvider(namespace, authProviderName string)
- func (d *Dispatcher) StopFileScannerProvider(namespace, fileScannerProviderName string)
- func (d *Dispatcher) StopModelProvider(namespace, modelProviderName string)
- func (d *Dispatcher) TransformRequest(u url.URL, credEnv map[string]string) func(req *http.Request)
- func (d *Dispatcher) URLForAuthProvider(ctx context.Context, namespace, authProviderName string) (url.URL, error)
- func (d *Dispatcher) URLForModelProvider(ctx context.Context, namespace, modelProviderName string) (url.URL, error)
- func (d *Dispatcher) UpdateConfiguredAuthProviders(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func (*Dispatcher) ListConfiguredAuthProviders ¶ added in v0.5.0
func (d *Dispatcher) ListConfiguredAuthProviders(namespace string) []string
func (*Dispatcher) ModelsForProvider ¶ added in v0.8.0
func (d *Dispatcher) ModelsForProvider(ctx context.Context, modelProviderNamespace, modelProviderName string) (*openai.ModelsList, error)
func (*Dispatcher) ModelsForProviderWithEnv ¶ added in v0.8.0
func (d *Dispatcher) ModelsForProviderWithEnv(ctx context.Context, modelProviderNamespace, modelProviderName string, env map[string]string) (*openai.ModelsList, error)
func (*Dispatcher) StopAuthProvider ¶ added in v0.5.0
func (d *Dispatcher) StopAuthProvider(namespace, authProviderName string)
func (*Dispatcher) StopFileScannerProvider ¶ added in v0.8.0
func (d *Dispatcher) StopFileScannerProvider(namespace, fileScannerProviderName string)
func (*Dispatcher) StopModelProvider ¶
func (d *Dispatcher) StopModelProvider(namespace, modelProviderName string)
func (*Dispatcher) TransformRequest ¶
func (*Dispatcher) URLForAuthProvider ¶ added in v0.5.0
func (*Dispatcher) URLForModelProvider ¶
func (*Dispatcher) UpdateConfiguredAuthProviders ¶ added in v0.6.1
func (d *Dispatcher) UpdateConfiguredAuthProviders(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.