config.dist.ini 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Copy this file to config.ini and replace the values below to match your needs
  2. #
  3. # The values that are not commented have to be set, everything else comes with
  4. # sensible defaults.
  5. [OpenAI]
  6. # The Chat Completion model you want to use.
  7. #
  8. # Unless you are in the GPT-4 beta (if you don't know - you aren't),
  9. # leave this as the default value (gpt-3.5-turbo)
  10. #
  11. # Model = gpt-3.5-turbo
  12. # Your OpenAI API key
  13. #
  14. # Find this in your OpenAI account:
  15. # https://platform.openai.com/account/api-keys
  16. #
  17. APIKey = sk-yoursecretkey
  18. # The maximum amount of input sent to the API
  19. #
  20. # In conjunction with MaxMessage, this determines how much context (= previous
  21. # messages) you can send with your query.
  22. #
  23. # If you set this too high, the responses you receive will become shorter the
  24. # longer the conversation gets.
  25. #
  26. # https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
  27. #
  28. # MaxTokens = 3000
  29. # The maximum number of messages in the room that will be considered as context
  30. #
  31. # By default, the last (up to) 20 messages will be sent as context, in addition
  32. # to the system message and the current query itself.
  33. #
  34. # MaxMessages = 20
  35. [Matrix]
  36. # The URL to your Matrix homeserver
  37. #
  38. Homeserver = https://matrix.local
  39. # An Access Token for the user your bot runs as
  40. # Can be obtained using a request like this:
  41. #
  42. # See https://www.matrix.org/docs/guides/client-server-api#login
  43. # for information on how to obtain this value
  44. #
  45. AccessToken = syt_yoursynapsetoken
  46. # The Matrix user ID of the bot (@local:domain.tld)
  47. # Only specify this if the bot fails to figure it out by itself
  48. #
  49. # UserID = @gptbot:matrix.local
  50. [GPTBot]
  51. # The default room name used by the !newroom command
  52. # Defaults to GPTBot if not set
  53. #
  54. # DefaultRoomName = GPTBot
  55. # Contents of a special message sent to the GPT API with every request.
  56. # Can be used to give the bot some context about the environment it's running in
  57. #
  58. # SystemMessage = You are a helpful bot.
  59. # Force inclusion of the SystemMessage defined above if one is defined on per-room level
  60. # If no custom message is defined for the room, SystemMessage is always included
  61. #
  62. # ForceSystemMessage = 0
  63. [Database]
  64. # Settings for the DuckDB database.
  65. # If not defined, the bot will not be able to remember anything, and will not support encryption
  66. # N.B.: Encryption doesn't work as it is supposed to anyway.
  67. Path = database.db