金沙直播app与阿森纳续约官方合作 - 金沙直播app
创新创业金沙直播app与阿森纳续约官方合作本着“创新、创造、创业”宗旨,以“激发创造思维,提高创新能力,培养创业精神”为目标,有目的、有计划、有组织地通过课堂金沙直播app与阿森纳续约官方合作、竞赛检验、课外实践的方式对金沙直播app与阿森纳续约官方合作进行创新创业金沙直播app与阿森纳续约官方合作,培养金沙直播app与阿森纳续约官方合作的创新创业观念和能力为金沙直播app与阿森纳续约官方合作提供广阔的创新创业平台,努力营造创新创业氛围。 同类内容

院 长 主持金沙直播app与阿森纳续约官方合作行政和党支部建设全面工作。 同题参见
副院长 协助院长负责创新创业金沙直播app与阿森纳续约官方合作全面工作。
创新部 负责全校各类大金沙直播app与阿森纳续约官方合作竞赛的统筹安排和组织工作、开展创新创业实践金沙直播app与阿森纳续约官方合作;组织各级各类创新创业考核工作;创新创业实践基地建设管理;创业精英班管理等工作。
教学部 负责创新创业通识金沙直播app与阿森纳续约官方合作课程建设、创新创业金沙直播app与阿森纳续约官方合作教研室建设与管理,推动专业教学与创新创业教学的融合;创新创业金沙直播app与阿森纳续约官方合作专兼职师资培训与管理;大金沙直播app与阿森纳续约官方合作创新创业训练计划金沙直播app与阿森纳续约官方合作组织实施等工作。
创业部 负责大金沙直播app与阿森纳续约官方合作创业孵化园建设及管理;创新型创业金沙直播app与阿森纳续约官方合作孵化、跟踪扶持服务;对外联系,对接金沙直播app与阿森纳续约官方合作科技园、校内外大金沙直播app与阿森纳续约官方合作双创基地等;创业导师库建设;金沙直播app与阿森纳续约官方合作办公室、工会等工作。
更多内容
若需了解「金沙直播app与阿森纳续约官方合作」的上下文,可结合站内栏目与相关篇目对照查看。
栏目用于追新,文内链接用于对照细节。这样安排可减少漏读与重复检索。
若从搜索引擎进入,可先确认当前栏目名称,再按需打开相关阅读。
- 部门简介
- 其它荣誉
- 校内基地
- 职能介绍
- 校内导师
- 金沙直播app与阿森纳续约官方合作级政策
- 校外基地
- 双创动态
- 双创成果
内容地图
网站首页 / jgsz / bmgk
创新创业智能体
${res.data.historyConversation[i].conversationContent}
`);
} else if (res.data.historyConversation[i].role === "user") {
aiChatBody.append(`
${res.data.historyConversation[i].conversationContent}
`);
}
}
} else {
aiChatBody.append(`
创新创业智能体
您好呀,我是该网站的创新创业智能向导,有关该大创的所有问题都可以问我哦~针对您的问题,我将会及时给出回复,助您快速了解大创的相关信息!
`);
}
refreshAiChatBodyHeight();
},
error: function(jqXHR, textStatus, errorThrown) {
console.error("AJAX request failed: " + textStatus);
}
})
}
function apiKeySelfCheck() {
jQuery.ajax({
url: "https://wiscom.donglistudio.com/ai/base/apiKeySelfCheck",
type: "GET",
dataType: "json",
beforeSend: function(xhr) {
xhr.setRequestHeader("token", window.localStorage.getItem("token"));
},
success: function(_) {
},
error: function(jqXHR, textStatus, errorThrown) {
console.error("AJAX request failed: " + textStatus);
}
})
}
function sendAiText() {
const aiTextareaVal = aiTextarea.val();
aiTextarea.val("");
aiChatBody.append(`
`);
refreshAiChatBodyHeight();
fetch("https://wiscom.donglistudio.com/ai/chat/conversationReply", {
method: "POST",
body: JSON.stringify({
"message": aiTextareaVal ? aiTextareaVal : "你好",
"characterId": window.localStorage.getItem("characterId"),
"supportFunctionCall": false
}),
headers: {
"content-type": "application/json",
"token": window.localStorage.getItem("token")
}
})
.then(async function(response) {
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
let buffer = "";
let flag = false;
let data = '';
while (true) {
let { done, value } = await reader.read();
if (done) break;
buffer += value;
let messages = buffer.split("\n"); // 使用换行符作为分隔符
buffer = messages.pop(); // 保留最后一部分可能是不完整的消息
for (let message of messages) {
if (message) {
try {
data += JSON.parse(message.replace('undefined', '')).data.reply;
if (!flag) {
aiChatBody.append(`
`);
flag = true;
} else {
const lastChild = aiChatBody.children().last();
lastChild.html(`
创新创业智能体
${data}
`);
}
refreshAiChatBodyHeight();
} catch (_) {
}
}
}
}
}).then(function (_) {
isAiChatResponding = false;
aiSend.css("backgroundColor", "#0277bd");
});
}
function refreshAiChatBodyHeight() {
const currentHeight = aiChatBody.prop("scrollHeight");
if (currentHeight != previousHeight) {
// 如果高度发生变化,将滚动条设置到最底部
aiChatBody.scrollTop(aiChatBody[0].scrollHeight);
previousHeight = currentHeight;
}
}
(function() {
if (!window.localStorage.getItem("token")) {
jQuery.ajax({
url: "https://wiscom.donglistudio.com/common/user/public/aiAgent/login/lcuCollegeOfInnovationAndEnterprenurship",
type: "GET",
crossOrigin: true,
dataType: "json",
success: function(res) {
window.localStorage.setItem(res.data.tokenName, res.data.tokenValue);
getAiCharacterId();
apiKeySelfCheck();
},
error: function(jqXHR, textStatus, errorThrown) {
console.error("AJAX request failed: " + textStatus);
}
})
} else {
getChatHistory();
apiKeySelfCheck();
}
})()
document.addEventListener("keydown", function (e) {
if (e.key === "Enter" && e.shiftKey && isAiChatOpen) {
if (isAiChatResponding) return;
aiSend.css("backgroundColor", "#e0e9e8");
isAiChatResponding = true;
sendAiText();
}
if (e.key === 'Escape' && isAiChatOpen) {
isAiChatOpen = false;
aiTextarea.val("");
aiChat.css("opacity", 0);
}
})
aiTextarea.on("keydown", function (e) {
if (e.key === "Enter" && e.shiftKey && isAiChatOpen) {
if (isAiChatResponding) return;
aiSend.css("backgroundColor", "#e0e9e8");
isAiChatResponding = true;
sendAiText();
}
})
aiButton.on("click", function() {
isAiChatOpen = true;
aiTextarea.focus();
aiChat.css({
"opacity": 1,
"display": "block"
});
})
aiChatClose.on("click", function() {
isAiChatOpen = false;
aiTextarea.val("");
aiChat.css({
"opacity": 0,
"display": "none"
});
})
aiSend.on("click", function() {
if (isAiChatResponding) return;
aiSend.css("backgroundColor", "#e0e9e8");
isAiChatResponding = true;
sendAiText();
})