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.