You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: `compose an email from ${valueName} to ${valueTo} in subject of ${valueSubject} in a proper format`,
69
-
},
70
-
],
71
-
},
72
-
}),
73
-
};
74
-
axios
75
-
.request(config)
76
-
.then(r=>{
77
-
setemail(r.data.candidates[0].content);
78
-
setloading(false);
79
-
})
80
-
.catch(e=>{
81
-
setloading(false);
82
-
if(e.message==='Network Error'){
83
-
Toast.show('No Internet 😟',{
84
-
type: 'danger',
85
-
placement: 'top',
86
-
duration: 2000,
87
-
offset: 30,
88
-
animationType: 'zoom-in',
89
-
});
90
-
return;
91
-
}
92
-
console.log(e.message);
93
-
});
55
+
setloading(true);
56
+
try{
57
+
constresponse=awaitGetGeminiProResponse([],`compose an email from ${valueName} to ${valueTo} in subject of ${valueSubject} in a proper format with no extra thing just the email`)
0 commit comments