probe

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListLLMModels

func ListLLMModels(ctx context.Context, req *types.LLMProbeRequest, storedAPIKey string) (*types.ListModelsResult, error)

ListLLMModels asks the configured endpoint for its model catalog so the settings UI can offer a picklist instead of requiring the model to be typed by hand. Like TestLLM it never returns a transport error — failures are captured inside ListModelsResult. When req.ApiKey is blank, storedAPIKey is used (the settings UI leaves a configured key blank to keep it unchanged).

func TestLLM

func TestLLM(ctx context.Context, req *types.LLMProbeRequest, storedAPIKey string) (*types.LLMProbeResult, error)

TestLLM issues a minimal chat completion against the supplied LLM settings and reports the outcome. It never returns a transport error to the caller — failures are captured inside LLMProbeResult so the UI can render them. A nil error only signals the request was well-formed enough to attempt. When req.ApiKey is blank, storedAPIKey is used (the settings UI leaves a configured key blank to keep it unchanged).

Types

This section is empty.

Jump to

Keyboard shortcuts

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