Skip to content

Commit

Permalink
Fix order of example logic adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Feb 18, 2025
1 parent dea61c5 commit d5c311f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/terminal_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
# import logging
# logging.basicConfig(level=logging.INFO)

# NOTE: The order of logic adapters is important
# because the first logic adapter takes precedence
# if a good response cannot be determined.

# Create a new instance of a ChatBot
bot = ChatBot(
'Terminal',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
logic_adapters=[
'chatterbot.logic.MathematicalEvaluation',
'chatterbot.logic.BestMatch',
'chatterbot.logic.TimeLogicAdapter',
'chatterbot.logic.BestMatch'
'chatterbot.logic.MathematicalEvaluation'
],
database_uri='sqlite:///database.sqlite3'
)
Expand Down

0 comments on commit d5c311f

Please sign in to comment.