promptgun 0.10.1 → 0.10.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.
Files changed (2) hide show
  1. package/README.md +4 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -51,12 +51,10 @@ You can put callbacks on elements of the result data, which get called as they c
51
51
  ```typescript
52
52
  await ai
53
53
  .chat('Give 5 top restaurants in London')
54
- .to(d => d
55
- .array(el => el
56
- .object(obj => obj
57
- .hasString('name')
58
- .hasString('address')
59
- )
54
+ .toArray(d => d
55
+ .object(obj => obj
56
+ .hasString('name')
57
+ .hasString('address')
60
58
  )
61
59
  )
62
60
  .onElement(restaurantStream /* type safe */ => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgun",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "exports": "./build/index.js",
6
6
  "types": "./build/index.d.ts",