srosro / deepspring-shellmate

MIT License
102 stars 7 forks source link

Use terminalStateID to Prevent Attaching GPT Suggestions to the Wrong Header #43

Closed delattre1 closed 4 months ago

delattre1 commented 5 months ago

Description:

Currently, GPT suggestions are stored on the most recent item. This can lead to issues where a delay causes old suggestions to be saved to the most recent request. To prevent this, we need to implement a mechanism where a terminalStateID is passed with each request. When the response is ready, the result should be stored in result[terminalStateID].

Proposed Solution:

This change will ensure that suggestions are correctly matched to their respective terminal states, preventing any issues caused by delays.