Skip to content

Add chat detection ability for detections on chat completions #305

@evaline-ju

Description

@evaline-ju

Description

With #208 and #196, orchestrator users using /chat/completions-detection are now able to use detectors that implement /text/contents for chat completions input or output detection, on single messages and choices.

For chat completions input and unary output detection, detectors that implement /text/chat can also be appropriate for use, on the entire chat message history (input) or any chat output choices.

Discussion

Adding integration for /text/chat detectors would allow users to combine usages of various detectors (both content detectors and chat detectors) in a call. Since chat detectors work on whole chat history, we can assume firstly that this does not have to work with streaming chat completions output.

Acceptance Criteria

  • Unit tests cover new/changed code
  • Examples build against new/changed code
  • READMEs are updated
  • Type of semantic version change is identified

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions