将主页接入openrouter的api实现ai聊天

This commit is contained in:
Cx330 committed 2025-03-31 22:20:47 +08:00
1 parent bcec51fae6
commit 767a6aadd5
4 files changed
+86 -2

No files matched your search

+8 -1
View File
@@ -5,6 +5,7 @@
<title>DreamLife|HomePage</title>
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" href="css/body.css">
<link rel="stylesheet" href="css/chat.css">
</head>
<body>
@@ -19,6 +20,11 @@
</ul>
<h2>您的当前区域时间</h2>
<p id="timeDisplay">加载中...</p>
<h1>DeepSeek 聊天界面</h1>
<div id="chatContainer"></div>
<input type="text" id="userInput" placeholder="输入你的消息...">
<button onclick="sendMessage()">发送</button>
</div>
<footer>
@@ -26,6 +32,7 @@
</footer>
<script src="javascape/time.js"></script>
<script src="javascape/ai_api.js"></script>
</body>
</html>