Remove prompt version selectors
This commit is contained in:
@@ -38,9 +38,6 @@ type SmokeTestRequest struct {
|
||||
// PromptID selects the prompt's default profile when ProfileID is empty. The
|
||||
// prompt's messages, inputs, templates, and output contract are not executed.
|
||||
PromptID string
|
||||
// PromptVersion selects a version of PromptID using ordinary prompt-version
|
||||
// selection semantics.
|
||||
PromptVersion string
|
||||
// ProfileID explicitly selects a profile and takes precedence over a prompt's
|
||||
// default profile and a backend's configured diagnostic default.
|
||||
ProfileID string
|
||||
@@ -68,11 +65,10 @@ func (r SmokeTestRequest) redactedString() string {
|
||||
retries = fmt.Sprintf("%d", *r.TransientRetries)
|
||||
}
|
||||
return fmt.Sprintf(
|
||||
"promptkit.SmokeTestRequest{Kind:%q BackendIDSet:%t PromptIDSet:%t PromptVersionSet:%t ProfileIDSet:%t APIKeySet:%t TransientRetries:%s}",
|
||||
"promptkit.SmokeTestRequest{Kind:%q BackendIDSet:%t PromptIDSet:%t ProfileIDSet:%t APIKeySet:%t TransientRetries:%s}",
|
||||
r.Kind,
|
||||
r.BackendID != "",
|
||||
r.PromptID != "",
|
||||
r.PromptVersion != "",
|
||||
r.ProfileID != "",
|
||||
r.APIKey != "",
|
||||
retries,
|
||||
@@ -119,7 +115,8 @@ type SmokeTestTarget struct {
|
||||
BackendID string
|
||||
// ProfileID is the selected profile, if any.
|
||||
ProfileID string
|
||||
// PromptID and PromptVersion identify the prompt used for selection, if any.
|
||||
// PromptID identifies the selected prompt; PromptVersion carries its
|
||||
// descriptive version label, if any.
|
||||
PromptID string
|
||||
PromptVersion string
|
||||
// DefaultSourceBackendID identifies the backend whose configured default
|
||||
@@ -228,7 +225,7 @@ const (
|
||||
// configuration.
|
||||
//
|
||||
// Selection prefers an explicit ProfileID, then the profile selected by
|
||||
// PromptID and PromptVersion, then a configured backend default profile when
|
||||
// PromptID, then a configured backend default profile when
|
||||
// inference requires one. For backend-only probes, a selected profile supplies
|
||||
// its backend metadata; otherwise BackendID selects a backend directly without
|
||||
// resolving its default inference profile. A selected profile determines its
|
||||
@@ -286,7 +283,6 @@ func toDomainSmokeTestRequest(request SmokeTestRequest) (domain.SmokeTestRequest
|
||||
Kind: domain.SmokeTestKind(request.Kind),
|
||||
BackendID: request.BackendID,
|
||||
PromptID: request.PromptID,
|
||||
PromptVersion: request.PromptVersion,
|
||||
ProfileID: request.ProfileID,
|
||||
Execution: execution,
|
||||
APIKey: request.APIKey,
|
||||
|
||||
Reference in New Issue
Block a user