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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
🚀 What's New
ScopeGuardV2.validate / batch_validate (and AsyncScopeGuardV2) now return suggested_response for a Predefined Answer even when the output-field selection leaves it out: a second pass continues from the scope_class + suggested_response prompt and generates the reply as if it had been requested, so it follows the same rules as a requested one (e.g. the user's language). Second-pass tokens are added to usage. On by default; resolve_predefined=False skips it. Implemented on the vllm, vllm-api and hf backends (#57)
POST /orbitals/scope-guard-v2/validate and /batch-validate accept a resolve_predefined body param (default true); the api client sends it only when false (#57)
🔧 Internal
Extract each backend's classify predefined-response step (_continue_predefined on vllm-api and hf, _predefined_prompt/_predefined_params on offline vllm) and reuse it from validate; the hf backend's single validate now goes through batch_validate; _add_usage returns None when either side is None (#57)