初始化提交

This commit is contained in:
2024-08-13 09:37:23 +08:00
parent 4923337038
commit e112fa4e44
50 changed files with 1649 additions and 259 deletions
@@ -68,7 +68,7 @@ export default function ChatInput(
const handleUploadFile = async (file: File) => {
if (imageUrl || files.length > 0) {
alert("You can only upload one file at a time.");
alert("同一时刻只能上传一个文件。");
return;
}
try {
@@ -99,10 +99,11 @@ export default function ChatInput(
</div>
)}
<div className="flex w-full items-start justify-between gap-4 ">
<Input
<textarea
autoFocus
rows={2}
name="message"
placeholder="Type a message"
placeholder="请输入消息"
className="flex-1"
value={props.input}
onChange={props.handleInputChange}
@@ -119,7 +120,7 @@ export default function ChatInput(
<LlamaCloudSelector setRequestData={setRequestData} />
)}
<Button type="submit" disabled={props.isLoading || !props.input.trim()}>
Send message
</Button>
</div>
</form>