Commit d44020d
committed
Rename innermost prompt property from "content" to "value"
This makes it clear that "content" is always a peer to "role", whereas "value" only appears when you're using the longhand content array form which takes { type, value } pairs.
Most existing APIs instead do { type: "image", image: theValue }, { type: "text", text: theValue }, etc. This is not really appropriate for a web API, so we don't end up copying them exactly. But none of the existing APIs use "content" at both the outer and inner levels, so it's probably a good idea to avoid that path.1 parent 5106f6c commit d44020d
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
| 794 | + | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
| 814 | + | |
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| |||
0 commit comments