Skip to content

Commit

Permalink
Polish explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Apr 18, 2024
1 parent 8f7fc02 commit 5b3825e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions heymans/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
# A fixed welcome message
welcome_message_with_search = '''Nice to meet you! I am Sigmund, your friendly OpenSesame assistant! How can I help you?
<div class="message-notification">I am currently functioning as an OpenSesame expert. If you want to discuss things that are not related to OpenSesame, <a href="/api/conversation/new/without_search">click here</a> to turn me into a regular chatbot.</div>'''
<div class="message-notification">I am currently functioning as an OpenSesame expert. If you want to discuss things that are not related to OpenSesame, <a href="/api/conversation/new/without_search">click here</a> to turn me into a regular chatbot that has access to a wider range of tools.</div>'''
welcome_message_without_search = '''Nice to meet you! I am Sigmund, your friendly AI assistant! What would you like to discuss?
<div class="message-notification">I am currently functioning as a regular chatbot, who can do <a href="/about">lots of things</a>. However, I cannot read the OpenSesame documentation while in this mode. If you want help with OpenSesame, <a href="/api/conversation/new/with_search">click here</a> to turn me into an OpenSesame expert.</div>'''
<div class="message-notification">I am currently functioning as a regular chatbot. While in this mode I can do <a href="/about">lots of things</a>, but I cannot read the OpenSesame documentation. Therefore, if you want help with OpenSesame, <a href="/api/conversation/new/with_search">click here</a> to turn me into an OpenSesame expert.</div>'''
# The default title of a new conversation
default_conversation_title = 'New conversation'
# The number of previous messages for which tool results should be
Expand Down
13 changes: 12 additions & 1 deletion heymans/static/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ If you need a custom subscription, such as an invoiced subscription for multiple
<i class="fas fa-sign-in-alt"></i> Sign in with your forum account
</a>

<a href="https://forum.cogsci.nl/entry/register" class="link-button">
<a href="https://forum.cogsci.nl/entry/register" class="link-button" id="forumLink">
<i class="fas fa-plus-circle"></i> Create a forum account
</a>

<script>
document.getElementById("forumLink").addEventListener("click", function(event) {
event.preventDefault(); // Prevent the default link behavior

if (confirm("You will now be redirected to forum.cogsci.nl to create an account. Once you have created an account, simply come back to this tab and log in!")) {
window.open(this.href, "_blank"); // Open the link in a new tab
window.focus(); // Focus on the new tab for a smooth transition
}
});
</script>

0 comments on commit 5b3825e

Please sign in to comment.