config.dist.ini 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. ###############################################################################
  6. [GPTBot]
  7. # Some way for the user to contact you.
  8. # Ideally, either your personal user ID or a support room
  9. # If this is your user ID and Debug is 1, any errors that occur when using the script will be reported to you in detail
  10. #
  11. Operator = Contact details not set
  12. # Enable debug mode
  13. # Will send error tracebacks to you (= Operator above) if an error occurs processing a message from you
  14. # Defaults to 0 (= off)
  15. #
  16. # Debug = 1
  17. # The default room name used by the !newroom command
  18. # Defaults to GPTBot if not set
  19. #
  20. # DefaultRoomName = GPTBot
  21. # Contents of a special message sent to the GPT API with every request.
  22. # Can be used to give the bot some context about the environment it's running in
  23. #
  24. # SystemMessage = You are a helpful bot.
  25. # Force inclusion of the SystemMessage defined above if one is defined on per-room level
  26. # If no custom message is defined for the room, SystemMessage is always included
  27. #
  28. # ForceSystemMessage = 0
  29. # Path to a custom logo
  30. # Used as room/space image and profile picture
  31. # Defaults to logo.png in assets directory
  32. #
  33. # Logo = assets/logo.png
  34. # Display name for the bot
  35. #
  36. # DisplayName = GPTBot
  37. # A list of allowed users
  38. # If not defined, everyone is allowed to use the bot
  39. # Use the "*:homeserver.matrix" syntax to allow everyone on a given homeserver
  40. #
  41. # AllowedUsers = ["*:matrix.local"]
  42. # Minimum level of log messages that should be printed
  43. # Available log levels in ascending order: trace, debug, info, warning, error, critical
  44. # Defaults to info
  45. #
  46. LogLevel = info
  47. ###############################################################################
  48. [OpenAI]
  49. # The Chat Completion model you want to use.
  50. #
  51. # Unless you are in the GPT-4 beta (if you don't know - you aren't),
  52. # leave this as the default value (gpt-3.5-turbo)
  53. #
  54. # Model = gpt-3.5-turbo
  55. # Your OpenAI API key
  56. #
  57. # Find this in your OpenAI account:
  58. # https://platform.openai.com/account/api-keys
  59. #
  60. APIKey = sk-yoursecretkey
  61. # The maximum amount of input sent to the API
  62. #
  63. # In conjunction with MaxMessage, this determines how much context (= previous
  64. # messages) you can send with your query.
  65. #
  66. # If you set this too high, the responses you receive will become shorter the
  67. # longer the conversation gets.
  68. #
  69. # https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
  70. #
  71. # MaxTokens = 3000
  72. # The maximum number of messages in the room that will be considered as context
  73. #
  74. # By default, the last (up to) 20 messages will be sent as context, in addition
  75. # to the system message and the current query itself.
  76. #
  77. # MaxMessages = 20
  78. ###############################################################################
  79. [WolframAlpha]
  80. # An API key for Wolfram|Alpha
  81. # Request one at https://developer.wolframalpha.com
  82. #
  83. # Leave unset to disable Wolfram|Alpha integration (`!gptbot calculate`)
  84. #
  85. #APIKey = YOUR-APIKEY
  86. ###############################################################################
  87. [Matrix]
  88. # The URL to your Matrix homeserver
  89. #
  90. Homeserver = https://matrix.local
  91. # An Access Token for the user your bot runs as
  92. # Can be obtained using a request like this:
  93. #
  94. # See https://www.matrix.org/docs/guides/client-server-api#login
  95. # for information on how to obtain this value
  96. #
  97. AccessToken = syt_yoursynapsetoken
  98. # The Matrix user ID of the bot (@local:domain.tld)
  99. # Only specify this if the bot fails to figure it out by itself
  100. #
  101. # UserID = @gptbot:matrix.local
  102. ###############################################################################
  103. [Database]
  104. # Path of the main database
  105. # Used to "remember" settings, etc.
  106. #
  107. Path = database.db
  108. # Path of the Crypto Store - required to support encrypted rooms
  109. # (not tested/supported yet)
  110. #
  111. CryptoStore = store.db
  112. ###############################################################################
  113. [TrackingMore]
  114. # API key for TrackingMore
  115. # If not defined, the bot will not be able to provide parcel tracking
  116. #
  117. # APIKey = abcde-fghij-klmnop
  118. ###############################################################################
  119. [Replicate]
  120. # API key for replicate.com
  121. # Can be used to run lots of different AI models
  122. # If not defined, the features that depend on it are not available
  123. #
  124. # APIKey = r8_alotoflettersandnumbershere
  125. ###############################################################################
  126. [HuggingFace]
  127. # API key for Hugging Face
  128. # Can be used to run lots of different AI models
  129. # If not defined, the features that depend on it are not available
  130. #
  131. # APIKey = __________________________
  132. ###############################################################################