Spaces:
Sleeping
Sleeping
Commit
Β·
81f6c44
1
Parent(s):
c46949e
Update app/page.tsx
Browse files- app/page.tsx +2 -4
app/page.tsx
CHANGED
@@ -50,7 +50,7 @@ const Page: React.FC = () => {
|
|
50 |
const { messages, input, setInput, handleSubmit, isLoading } = useChat({
|
51 |
experimental_onFunctionCall: functionCallHandler,
|
52 |
onResponse: (response: { status: number; }) => {
|
53 |
-
if (response.status ===
|
54 |
toast.error("You have reached your request limit for the day.");
|
55 |
return;
|
56 |
} else {
|
@@ -128,9 +128,7 @@ const Page: React.FC = () => {
|
|
128 |
|
129 |
return (
|
130 |
<main className={styles.main}>
|
131 |
-
<
|
132 |
-
π URL Surfer πββοΈ
|
133 |
-
</h1>
|
134 |
<div className={styles.messages}>
|
135 |
{messages.length > 0 ? (
|
136 |
messages.map((message, i) => {
|
|
|
50 |
const { messages, input, setInput, handleSubmit, isLoading } = useChat({
|
51 |
experimental_onFunctionCall: functionCallHandler,
|
52 |
onResponse: (response: { status: number; }) => {
|
53 |
+
if (response.status === 410) {
|
54 |
toast.error("You have reached your request limit for the day.");
|
55 |
return;
|
56 |
} else {
|
|
|
128 |
|
129 |
return (
|
130 |
<main className={styles.main}>
|
131 |
+
<h2 className={styles.title}>ππββοΈ</h2>
|
|
|
|
|
132 |
<div className={styles.messages}>
|
133 |
{messages.length > 0 ? (
|
134 |
messages.map((message, i) => {
|