Skip to content

Commit

Permalink
make default to Skyler
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Apr 8, 2024
1 parent a32bed1 commit ae2dbe4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,11 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>
const api = await imjoyRPC.setupRPC({ name: 'BioImage.IO Chatbot' });
await api.export({
setup() { }, async run(ctx) {
assistantName = urlParams.get('assistant') || (ctx.config && ctx.config.assistant_name) || "Melman"
let defaultAssistant = "Skyler";
if(!allAssistants.includes(assistantName)) {
defaultAssistant = "Melman"
}
assistantName = urlParams.get('assistant') || (ctx.config && ctx.config.assistant_name) || defaultAssistant;
if (api.getChatbotExtensions) {
const extensions = await api.getChatbotExtensions(_registerExtension) // object with name: extension
for (let ext of Object.values(extensions)) {
Expand Down

0 comments on commit ae2dbe4

Please sign in to comment.