visual-ai-assertions 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ __export(index_exports, {
|
|
|
44
44
|
Layout: () => Layout,
|
|
45
45
|
Model: () => Model,
|
|
46
46
|
Provider: () => Provider,
|
|
47
|
+
ReasoningEffort: () => ReasoningEffort,
|
|
47
48
|
StatementResultSchema: () => StatementResultSchema,
|
|
48
49
|
UsageInfoSchema: () => UsageInfoSchema,
|
|
49
50
|
VisualAIAssertionError: () => VisualAIAssertionError,
|
|
@@ -65,6 +66,12 @@ __export(index_exports, {
|
|
|
65
66
|
module.exports = __toCommonJS(index_exports);
|
|
66
67
|
|
|
67
68
|
// src/constants.ts
|
|
69
|
+
var ReasoningEffort = {
|
|
70
|
+
LOW: "low",
|
|
71
|
+
MEDIUM: "medium",
|
|
72
|
+
HIGH: "high",
|
|
73
|
+
XHIGH: "xhigh"
|
|
74
|
+
};
|
|
68
75
|
var Provider = {
|
|
69
76
|
ANTHROPIC: "anthropic",
|
|
70
77
|
OPENAI: "openai",
|
|
@@ -737,7 +744,7 @@ var OpenAIDriver = class {
|
|
|
737
744
|
strict: true,
|
|
738
745
|
schema: options.responseSchema
|
|
739
746
|
}
|
|
740
|
-
} : { type: "json_object" };
|
|
747
|
+
} : { type: "json_object", name: "visual_ai_response" };
|
|
741
748
|
const requestParams = {
|
|
742
749
|
model: this.model,
|
|
743
750
|
max_output_tokens: this.maxTokens,
|
|
@@ -1546,6 +1553,7 @@ function assertVisualCompareResult(result, label) {
|
|
|
1546
1553
|
Layout,
|
|
1547
1554
|
Model,
|
|
1548
1555
|
Provider,
|
|
1556
|
+
ReasoningEffort,
|
|
1549
1557
|
StatementResultSchema,
|
|
1550
1558
|
UsageInfoSchema,
|
|
1551
1559
|
VisualAIAssertionError,
|