|
1 | 1 | # thirdweb |
2 | 2 |
|
| 3 | +## 5.85.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#5972](https://github.com/thirdweb-dev/js/pull/5972) [`0b62397`](https://github.com/thirdweb-dev/js/commit/0b6239735ea01b68533784d629a7bd5ab8752b94) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support multiple messages for Nebula API, updated input props. |
| 8 | + |
| 9 | + Some prop names have been updated: |
| 10 | + |
| 11 | + `prompt -> messsage` |
| 12 | + `context -> contextFilter` |
| 13 | + |
| 14 | + ```ts |
| 15 | + Nebula.chat({ |
| 16 | + client, |
| 17 | + // prompt is now message |
| 18 | + message: |
| 19 | + "What's the total supply of this contract: 0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8", |
| 20 | + // contextFilter is now contextFilter |
| 21 | + contextFilter: { |
| 22 | + chains: [sepolia], |
| 23 | + }, |
| 24 | + }); |
| 25 | + ``` |
| 26 | + |
| 27 | + The Nebula.chat and Nebula.execute functions now support multiple input messages, and the input properties have been updated to match the http API. |
| 28 | + |
| 29 | + ```ts |
| 30 | + Nebula.chat({ |
| 31 | + client, |
| 32 | + // multi message format |
| 33 | + messages: [ |
| 34 | + { |
| 35 | + role: "user", |
| 36 | + content: |
| 37 | + "Tell me the name of this contract: 0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8", |
| 38 | + }, |
| 39 | + { |
| 40 | + role: "assistant", |
| 41 | + content: "The name of the contract is My NFT Collection", |
| 42 | + }, |
| 43 | + { |
| 44 | + role: "user", |
| 45 | + content: "What's the symbol of this contract?", |
| 46 | + }, |
| 47 | + ], |
| 48 | + contextFilter: { |
| 49 | + chains: [sepolia], |
| 50 | + }, |
| 51 | + }); |
| 52 | + ``` |
| 53 | + |
| 54 | + Same changes apply to Nebula.execute. |
| 55 | + |
| 56 | + ```ts |
| 57 | + Nebula.execute({ |
| 58 | + client, |
| 59 | + account, |
| 60 | + messages: [ |
| 61 | + { role: "user", content: "What's the address of vitalik.eth" }, |
| 62 | + { |
| 63 | + role: "assistant", |
| 64 | + content: |
| 65 | + "The address of vitalik.eth is 0xd8dA6BF26964aF8E437eEa5e3616511D7G3a3298", |
| 66 | + }, |
| 67 | + { role: "user", content: "Send them 0.0001 ETH" }, |
| 68 | + ], |
| 69 | + contextFilter: { |
| 70 | + chains: [sepolia], |
| 71 | + }, |
| 72 | + }); |
| 73 | + ``` |
| 74 | + |
| 75 | +### Patch Changes |
| 76 | + |
| 77 | +- [#5966](https://github.com/thirdweb-dev/js/pull/5966) [`4ffcf30`](https://github.com/thirdweb-dev/js/commit/4ffcf305abdced715a76638a3af47d0f91e24e01) Thanks [@MananTank](https://github.com/MananTank)! - Fix NFT components not displaying correct metadata if multiple contracts with same token id is rendered because of incorrect caching |
| 78 | + |
| 79 | +- [#5973](https://github.com/thirdweb-dev/js/pull/5973) [`dbb64ea`](https://github.com/thirdweb-dev/js/commit/dbb64ea190b248c5e4e04c98b0e6bc178fd729a0) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Update implementations |
| 80 | + |
| 81 | +- [#5982](https://github.com/thirdweb-dev/js/pull/5982) [`b6d65cf`](https://github.com/thirdweb-dev/js/commit/b6d65cf1c42a6c6707489e2d3ab3510f137c1b35) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Added `mode` as a predefined chain |
| 82 | + |
| 83 | +- [#5967](https://github.com/thirdweb-dev/js/pull/5967) [`9cbcbe7`](https://github.com/thirdweb-dev/js/commit/9cbcbe776032556717b3d0b30e774323f75c63ee) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Added overrides for Lumia Testnet to use pre-EIP1559 gas values |
| 84 | + |
3 | 85 | ## 5.84.0 |
4 | 86 |
|
5 | 87 | ### Minor Changes |
|
0 commit comments