Open pmarsh-scottlogic opened 3 months ago
Here's all the cases:
paste the following code in the try
block in chatGptChatCompletion
throw new Error(
'429: You are being rate limited. Please try again in 3 minutes.'
);
paste throw new Error('Test error');
into the top of the try
block in handleChatToGPT
When we access the API, by
POST /openai/chat
, we return an object that looks like thisAfter #873 we add
wonLevelMessage
as well.What's the problem? Well all of the following properties represent something that might be added to the chat history:
reply
,transformedMessage
,wonLevelMessage
,openAIErrorMessage
,transformedMessageInfo
, or at least displayed on the frontend's chatHistory. We should think about perhaps just returning a list ofChatMessage
sThis will require some investigation (about when, where and how the above messages get added to the font/backend chats), and a bit of poking around on both the front and back end, and then probably lots of test changes.