初始化提交
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user