Add awaits
This commit is contained in:
parent
f11180db7a
commit
631a5e3e31
8 changed files with 14 additions and 13 deletions
|
@ -5,7 +5,7 @@ export const getSuggestions = async (chatHisory: Message[]) => {
|
|||
const chatModel = localStorage.getItem('chatModel');
|
||||
const chatModelProvider = localStorage.getItem('chatModelProvider');
|
||||
|
||||
const res = await fetch(`${getServerEnv("BACKEND_API_URL")}/suggestions`, {
|
||||
const res = await fetch(`${await getServerEnv("BACKEND_API_URL")}/suggestions`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue