Skip to content

Commit af4090e

Browse files
Changed some designs.
1 parent 31b8061 commit af4090e

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

src/components/Chat.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ function Chat() {
145145
setChatHistory((prev) => [...prev, newMessage]);
146146
setMessage("");
147147
setIsLoading(true);
148-
149148
console.log(`Using model: ${selectedModel}`);
150149

151150
try {
@@ -157,16 +156,19 @@ function Chat() {
157156
)
158157
.join("\n");
159158

160-
const response = await fetch("https://newserver-ic4m.onrender.com/chat", {
161-
method: "POST",
162-
headers: {
163-
"Content-Type": "application/json",
164-
},
165-
body: JSON.stringify({
166-
model: selectedModel,
167-
prompt: conversation,
168-
}),
169-
});
159+
const response = await fetch(
160+
"https://olova-research-server.onrender.com/chat",
161+
{
162+
method: "POST",
163+
headers: {
164+
"Content-Type": "application/json",
165+
},
166+
body: JSON.stringify({
167+
model: selectedModel,
168+
prompt: conversation,
169+
}),
170+
}
171+
);
170172

171173
if (!response.ok) {
172174
throw new Error(`HTTP error! status: ${response.status}`);

0 commit comments

Comments
 (0)