将主页接入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

+1 -1
View File
@@ -9,7 +9,7 @@ body, html {
/*主内容区test*/
.container {
width: 60%;
margin: 10% auto 0;
margin: 4% auto 0;
background-color: #f0f0f0;
padding: 2% 5%;
border-radius: 10px
+20
View File
@@ -0,0 +1,20 @@
/* 简单样式,仅用于展示 */
#chatContainer {
border: 1px solid #ccc;
padding: 10px;
height: 50px;
overflow-y: auto;
margin-bottom: 10px;
}
.message {
margin: 5px 0;
padding: 5px;
}
.user {
color: blue;
text-align: right;
}
.bot {
color: green;
text-align: left;
}