matthoffner commited on
Commit
81f6c44
β€’
1 Parent(s): c46949e

Update app/page.tsx

Browse files
Files changed (1) hide show
  1. 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 === 429) {
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
- <h1 className={styles.title}>
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) => {