17012fd5 by jeff

fix merged conflict

2 parents 0b0fc94a 28a81d8e
Showing 1 changed file with 8 additions and 6 deletions
...@@ -69,16 +69,18 @@ app.post('/api', async (req, res) => { ...@@ -69,16 +69,18 @@ app.post('/api', async (req, res) => {
69 }) 69 })
70 70
71 } catch (e) { 71 } catch (e) {
72 // let error_msg = e.response.data.error.message ? e.response.data.error.message : ''; 72 let error_msg = e.response.data.error.message ? e.response.data.error.message : '';
73 // if (error_msg.indexOf('maximum context length')>=0){ 73 if (error_msg.indexOf('maximum context length')>=0){
74 // console.log(error_msg); 74 res.json({
75 // }else{ 75 message: "You have reach prompt limit. Please narrow down your request prompt.",
76 // console.log(e.response); 76 })
77 // } 77 }else{
78 console.log(e.response); 78 console.log(e.response);
79 }
79 } finally { 80 } finally {
80 // console.log('We do cleanup here'); 81 // console.log('We do cleanup here');
81 } 82 }
83
82 }); 84 });
83 85
84 // Get Models Route 86 // Get Models Route
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!