Describe the bug
Although there's MAX_RETRY_ATTEMPTS defined in the code, it will keep retrying when LLM returns wrong response.
getConversationTitleFromLocalModel
To Reproduce
Steps to reproduce the behavior:
- just set a wrong LLM url
- send something to the wrong LLM
- See error
Expected behavior
Retry MAX_RETRY_ATTEMPTS and stop retrying
Additional context
Add any other context about the problem here.
checked the code and saw something, e.g in the getConversationTitleFromLocalModel()
https://github.com/fingerthief/minimal-chat/blob/main/src/libs/api-access/open-ai-api-standard-access.js#L205
every time retry in this function, the retryTimes will be reset
and I'm not sure whether "retryCounters.title" could be updated in the handleRetry() function
Describe the bug
Although there's MAX_RETRY_ATTEMPTS defined in the code, it will keep retrying when LLM returns wrong response.
getConversationTitleFromLocalModel
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Retry MAX_RETRY_ATTEMPTS and stop retrying
Additional context
Add any other context about the problem here.
checked the code and saw something, e.g in the getConversationTitleFromLocalModel()
https://github.com/fingerthief/minimal-chat/blob/main/src/libs/api-access/open-ai-api-standard-access.js#L205
every time retry in this function, the retryTimes will be reset
and I'm not sure whether "retryCounters.title" could be updated in the handleRetry() function