Le titre de la page devient le nom de l'assistant
This commit is contained in:
parent
ff8fe38a19
commit
f1ad0e9b54
@ -97,11 +97,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function complete(messages, apiUrl,/* token,*/ params, progressCallback) {
|
async function complete(messages, apiUrl, params, progressCallback) {
|
||||||
// const apiUrl = baseUrl + '/chat/completions';
|
|
||||||
const headers = {
|
const headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
// "Authorization": `Bearer ${token}`
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
@ -183,9 +181,10 @@
|
|||||||
assistant_id = config.id;
|
assistant_id = config.id;
|
||||||
assistant_title = config.title;
|
assistant_title = config.title;
|
||||||
|
|
||||||
console.log("Changed assistant " + assistant_id);
|
document.title = assistant_title;
|
||||||
console.log(assistant);
|
|
||||||
|
|
||||||
|
// console.log("Changed assistant " + assistant_id);
|
||||||
|
// console.log(assistant);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function refreshAssistants() {
|
async function refreshAssistants() {
|
||||||
|
Loading…
Reference in New Issue
Block a user