mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-02 16:38:30 +00:00
Handle response failure.
This commit is contained in:
@@ -754,6 +754,7 @@ void TracyLlm::SendMessage( std::unique_lock<std::mutex>& lock )
|
||||
res = m_api->ChatCompletion( req, [this]( const nlohmann::json& response ) -> bool { return OnResponse( response ); }, m_modelIdx );
|
||||
|
||||
lock.lock();
|
||||
if( !res ) m_responding = false;
|
||||
}
|
||||
catch( std::exception& e )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user