probe

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: AGPL-3.0 Imports: 8 Imported by: ? 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 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