Fix: Correctly use context model for moderation #54
ci.yml
on: pull_request
Build, Test, and Lint
28s
Annotations
2 errors
|
Build, Test, and Lint
Process completed with exit code 1.
|
|
src/__tests__/unit/checks/moderation-secret-keys.test.ts > moderation guardrail > uses context client when available:
src/__tests__/unit/checks/moderation-secret-keys.test.ts#L102
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ]
Received:
1st spy call:
Array [
Object {
"input": "test text",
"model": "omni-moderation-latest",
+ "safety_identifier": "openai-guardrails-js",
},
]
Number of calls: 1
❯ src/__tests__/unit/checks/moderation-secret-keys.test.ts:102:31
|