Attempt trigger process call server side

This commit is contained in:
Andrew Pennington 2024-08-15 22:37:24 +01:00
parent 73bf7f3d79
commit a62e39a776
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA
8 changed files with 21 additions and 16 deletions

View file

@ -4,7 +4,7 @@ import { useState } from 'react';
import Lightbox from 'yet-another-react-lightbox';
import 'yet-another-react-lightbox/styles.css';
import { Message } from './ChatWindow';
import process from 'process';
import { getServerEnv } from '@/lib/serverEnvironment';
type Image = {
url: string;
@ -35,7 +35,7 @@ const SearchImages = ({
const chatModel = localStorage.getItem('chatModel');
const res = await fetch(
`${process.env.BACKEND_API_URL}/images`,
`${getServerEnv("BACKEND_API_URL")}/images`,
{
method: 'POST',
headers: {