You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
End-to-end guardrails experience exposed on openAI chat API. This means, a user can use similar API as openAI chat and provide a list of detectors they want to run. Behind the scene, orchestrator will automatically run the detector at appropriate time in the lifecycle of the request (based on type of detector).
Description
To enable running detections on chat completion API, we need to design how the request and response look like for this API.
Some constrains and requirements we have talked about for designing this includes:
API should support full openai API, thus providing chat completion:
The parts of request that are in openai API, for example, parameters and messages should remain as is
The parts of response from openai API, for example choices, usage etc, should remain as is.
We want to provider ability to specify different kinds of detectors together, example, HAP, PII.
Users should be able to provide list of detectors they want to execute on input and output separately.
We understand user would likely need to have a bit of background to use some detectors of different types, where the answer is not quite intuitive at first, like use of generated type detectors along with HAP / PII, where response objects look different.
Since some of these detectors may support optional parameters, we need each of the detector that the user is requesting to be an object, where one can pass parameters.
Use-case
End-to-end guardrails experience exposed on openAI chat API. This means, a user can use similar API as openAI chat and provide a list of detectors they want to run. Behind the scene, orchestrator will automatically run the detector at appropriate time in the lifecycle of the request (based on type of detector).
Description
To enable running detections on chat completion API, we need to design how the request and response look like for this API.
Some constrains and requirements we have talked about for designing this includes:
generated
type detectors along with HAP / PII, where response objects look different.Acceptance Criteria
The text was updated successfully, but these errors were encountered: