Skip to content

Commit dce0bab

Browse files
committed
Remove syntax checks
1 parent 1ec59d3 commit dce0bab

File tree

8 files changed

+0
-1221
lines changed

8 files changed

+0
-1221
lines changed

plugins/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ import { handler as qualifireDangerousContent } from './qualifire/dangerousConte
1717
import { handler as qualifireGrounding } from './qualifire/grounding';
1818
import { handler as qualifireHarassment } from './qualifire/harassment';
1919
import { handler as qualifireInstructionFollowing } from './qualifire/instructionFollowing';
20-
import { handler as qualifireJson } from './qualifire/json';
2120
import { handler as qualifirePolicy } from './qualifire/policy';
2221
import { handler as qualifireSexualContent } from './qualifire/sexualContent';
2322
import { handler as qualifireToolUseQuality } from './qualifire/toolUseQuality';
2423
import { handler as qualifireHallucinations } from './qualifire/hallucinations';
2524
import { handler as qualifireHateSpeech } from './qualifire/hateSpeech';
26-
import { handler as qualifireJavascript } from './qualifire/javascript';
27-
import { handler as qualifireLength } from './qualifire/length';
2825
import { handler as qualifirePii } from './qualifire/pii';
2926
import { handler as qualifirePromptInjections } from './qualifire/promptInjections';
30-
import { handler as qualifireSql } from './qualifire/sql';
31-
import { handler as qualifireWordCount } from './qualifire/wordCount';
3227
import { handler as portkeymoderateContent } from './portkey/moderateContent';
3328
import { handler as portkeylanguage } from './portkey/language';
3429
import { handler as portkeypii } from './portkey/pii';
@@ -92,18 +87,13 @@ export const plugins = {
9287
grounding: qualifireGrounding,
9388
harassment: qualifireHarassment,
9489
instructionFollowing: qualifireInstructionFollowing,
95-
json: qualifireJson,
9690
policy: qualifirePolicy,
9791
sexualContent: qualifireSexualContent,
9892
toolUseQuality: qualifireToolUseQuality,
9993
hallucinations: qualifireHallucinations,
10094
hateSpeech: qualifireHateSpeech,
101-
javascript: qualifireJavascript,
102-
length: qualifireLength,
10395
pii: qualifirePii,
10496
promptInjections: qualifirePromptInjections,
105-
sql: qualifireSql,
106-
wordCount: qualifireWordCount,
10797
},
10898
portkey: {
10999
moderateContent: portkeymoderateContent,

plugins/qualifire/javascript.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

plugins/qualifire/json.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

plugins/qualifire/length.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

plugins/qualifire/manifest.json

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -174,115 +174,6 @@
174174
},
175175
"required": ["policies"]
176176
}
177-
},
178-
{
179-
"name": "JSON Check",
180-
"id": "json",
181-
"supportedHooks": ["afterRequestHook"],
182-
"type": "guardrail",
183-
"description": [
184-
{
185-
"type": "subHeading",
186-
"text": "Checks that the model returned a valid json object. If provided, also validates agains the given json schema."
187-
}
188-
],
189-
"parameters": {
190-
"type": "object",
191-
"properties": {
192-
"jsonSchema": {
193-
"type": "string",
194-
"label": "JSON Schema",
195-
"description": [
196-
{
197-
"type": "subHeading",
198-
"text": "Optional. The json schema to validate the model's output against."
199-
}
200-
]
201-
}
202-
}
203-
}
204-
},
205-
{
206-
"name": "Length Check",
207-
"id": "length",
208-
"supportedHooks": ["afterRequestHook"],
209-
"type": "guardrail",
210-
"description": [
211-
{
212-
"type": "subHeading",
213-
"text": "Checks that the model's output length based on the given constraint"
214-
}
215-
],
216-
"parameters": {
217-
"type": "object",
218-
"properties": {
219-
"lengthConstraint": {
220-
"type": "string",
221-
"label": "Length",
222-
"description": [
223-
{
224-
"type": "subHeading",
225-
"text": "The length constraint. e.g.: '<100', '=100', '>=200', etc. "
226-
}
227-
]
228-
}
229-
},
230-
"required": ["lengthConstraint"]
231-
}
232-
},
233-
{
234-
"name": "Word Count Check",
235-
"id": "wordCount",
236-
"supportedHooks": ["afterRequestHook"],
237-
"type": "guardrail",
238-
"description": [
239-
{
240-
"type": "subHeading",
241-
"text": "Checks that the model's output word count based on the given constraint"
242-
}
243-
],
244-
"parameters": {
245-
"type": "object",
246-
"properties": {
247-
"wordCountConstraint": {
248-
"type": "string",
249-
"label": "Word Count",
250-
"description": [
251-
{
252-
"type": "subHeading",
253-
"text": "The word count constraint. e.g.: '<100', '=100', '>=200', etc. "
254-
}
255-
]
256-
}
257-
},
258-
"required": ["wordCountConstraint"]
259-
}
260-
},
261-
{
262-
"name": "SQL Check",
263-
"id": "sql",
264-
"supportedHooks": ["afterRequestHook"],
265-
"type": "guardrail",
266-
"description": [
267-
{
268-
"type": "subHeading",
269-
"text": "Checks that the model returnd valid sql code."
270-
}
271-
],
272-
"parameters": {}
273-
},
274-
{
275-
"name": "Javascript Check",
276-
"id": "javascript",
277-
"supportedHooks": ["afterRequestHook"],
278-
"type": "guardrail",
279-
"description": [
280-
{
281-
"type": "subHeading",
282-
"text": "Checks that the model returnd valid javascript code."
283-
}
284-
],
285-
"parameters": {}
286177
}
287178
]
288179
}

0 commit comments

Comments
 (0)