suave-std icon indicating copy to clipboard operation
suave-std copied to clipboard

Fix ChatGPT: refactor contract to work in the context of a confidential request

Open haythemsellami opened this issue 1 year ago • 0 comments

If my understanding is correct, the current implementation is not working on Rigil testnet when sending a confidential request that uses an instance of ChatGPT, more on this issue here https://github.com/flashbots/suave-geth/issues/243.

This PR refactor ChatGPT.sol to not store the apiKey in storage and just assume it will be stored confidentially somewhere else and passed as an argument to the complete() function.

haythemsellami avatar May 04 '24 14:05 haythemsellami