Skip to content

Suggestion: set detector_type to risk_name in response #92

@declark1

Description

@declark1

For Granite Guardian (and presumably Llama Guard), the detector_type field in the detection response is set generically to "risk" rather than the specific risk name that the results are associated with.

As there are default risk types applied for each endpoint, e.g. answer_relevance for /api/v1/text/generation, the risk may be unknown to the user if they didn't request it explicitly as a detector parameter. Setting this field to the specific risk name rather than "risk" would be a better use of this field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions