script.py 569 B

123456789101112131415161718192021222324252627
  1. params = {
  2. "bias string": " *I speak in an annoyingly cute way*",
  3. }
  4. def input_modifier(string):
  5. """
  6. This function is applied to your text inputs before
  7. they are fed into the model.
  8. """
  9. return string
  10. def output_modifier(string):
  11. """
  12. This function is applied to the model outputs.
  13. """
  14. return string
  15. def bot_prefix_modifier(string):
  16. """
  17. This function is only applied in chat mode. It modifies
  18. the prefix text for the Bot and can be used to bias its
  19. behavior.
  20. """
  21. return string + params["bias string"]