Share prompt instructions and simplify validation helpers
This commit is contained in:
@@ -98,7 +98,9 @@ func (c *RoleClient) CompleteStructured(parent context.Context, req structuredou
|
||||
for key, value := range req.Variables {
|
||||
vars[key] = value
|
||||
}
|
||||
vars["HardeningPolicy"] = prompts.HardeningText()
|
||||
for key, value := range prompts.SharedVariables() {
|
||||
vars[key] = value
|
||||
}
|
||||
apiKey := ""
|
||||
if backend.Credential != nil {
|
||||
apiKey = backend.Credential.Value()
|
||||
|
||||
Reference in New Issue
Block a user