Middleware enforces the model allowlist and optionally captures the request prompt with PII redaction.
| 30 | // Middleware enforces the model allowlist and optionally captures the |
| 31 | // request prompt with PII redaction. |
| 32 | type Middleware struct { |
| 33 | cfg Config |
| 34 | } |
| 35 | |
| 36 | // New constructs a Middleware with the supplied configuration. Model |
| 37 | // allowlist entries are normalised so the runtime check is |
nothing calls this directly
no outgoing calls
no test coverage detected