Remove redundant captured prompt fields
This commit is contained in:
@@ -641,9 +641,6 @@ func copyExtraParams(src map[string]any) map[string]any {
|
||||
|
||||
func resolveOutputContract(def *domain.PromptDefinition, override *domain.OutputContract) (domain.OutputContract, error) {
|
||||
contract := def.Validation
|
||||
if contract.Format == "" {
|
||||
contract.Format = def.OutputFormat
|
||||
}
|
||||
if override != nil {
|
||||
contract = *override
|
||||
if contract.Format == "" {
|
||||
|
||||
Reference in New Issue
Block a user