visual-ai-assertions 0.7.1 → 0.7.2
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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -672,12 +672,10 @@ var OpenAIDriver = class {
|
|
|
672
672
|
try {
|
|
673
673
|
const format = options?.responseSchema ? {
|
|
674
674
|
type: "json_schema",
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
} : { type: "json_object", name: "visual_ai_response" };
|
|
675
|
+
name: "visual_ai_response",
|
|
676
|
+
strict: true,
|
|
677
|
+
schema: options.responseSchema
|
|
678
|
+
} : { type: "json_object" };
|
|
681
679
|
const requestParams = {
|
|
682
680
|
model: this.model,
|
|
683
681
|
max_output_tokens: this.maxTokens,
|