fg-lib-gpt 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/main.js +1 -1
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -27,7 +27,7 @@ const doGpt = async ({
27
27
  validate(response)
28
28
 
29
29
 
30
- const json = response_format.type === 'json' || response_format.type === 'json_object'
30
+ const json = response_format.type === 'json' || response_format.type === 'json_schema'
31
31
 
32
32
  // JSON.parse might also fail
33
33
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fg-lib-gpt",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"