Need to detect timeouts and respond appropriately with retry and/or error. The best way to detect timeouts is to use the streaming completions API and reset the timer for every token received. If no tokens received for e.g. 60 seconds or whatever, retry, or eventually fail with a message.
Need to detect timeouts and respond appropriately with retry and/or error. The best way to detect timeouts is to use the streaming completions API and reset the timer for every token received. If no tokens received for e.g. 60 seconds or whatever, retry, or eventually fail with a message.