MCPcopy
hub / github.com/mudler/LocalAI / analyze

Function analyze

tests/e2e/e2e_pii_ner_test.go:161–169  ·  view source on GitHub ↗
(req schema.PIIAnalyzeRequest)

Source from the content-addressed store, hash-verified

159}
160
161func analyze(req schema.PIIAnalyzeRequest) (int, schema.PIIAnalyzeResponse) {
162 GinkgoHelper()
163 status, body := postJSON("/api/pii/analyze", req)
164 var resp schema.PIIAnalyzeResponse
165 if status == http.StatusOK {
166 Expect(json.Unmarshal(body, &resp)).To(Succeed())
167 }
168 return status, resp
169}
170
171func redact(req schema.PIIAnalyzeRequest) (int, []byte) {
172 GinkgoHelper()

Callers 1

Calls 1

postJSONFunction · 0.70

Tested by

no test coverage detected