feat(utils): add files utils, remove logger, fix API url
This commit is contained in:
parent
bab32e8d70
commit
c46fd7a9c8
5 changed files with 18 additions and 25 deletions
|
|
@ -7,7 +7,7 @@ export const getSuggestions = async (chatHisory: Message[]) => {
|
|||
const customOpenAIKey = localStorage.getItem('openAIApiKey');
|
||||
const customOpenAIBaseURL = localStorage.getItem('openAIBaseURL');
|
||||
|
||||
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/suggestions`, {
|
||||
const res = await fetch(`/api/suggestions`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue