config.dist.ini 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. [WolframAlpha]
  36. # An API key for Wolfram|Alpha
  37. # Request one at https://developer.wolframalpha.com
  38. #
  39. # Leave unset to disable Wolfram|Alpha integration (`!gptbot calculate`)
  40. #
  41. #APIKey = YOUR-APIKEY
  42. [Matrix]
  43. # The URL to your Matrix homeserver
  44. #
  45. Homeserver = https://matrix.local
  46. # An Access Token for the user your bot runs as
  47. # Can be obtained using a request like this:
  48. #
  49. # See https://www.matrix.org/docs/guides/client-server-api#login
  50. # for information on how to obtain this value
  51. #
  52. AccessToken = syt_yoursynapsetoken
  53. # The Matrix user ID of the bot (@local:domain.tld)
  54. # Only specify this if the bot fails to figure it out by itself
  55. #
  56. # UserID = @gptbot:matrix.local
  57. [GPTBot]
  58. # Some way for the user to contact you.
  59. # Ideally, either your personal user ID or a support room
  60. #
  61. Operator = Contact details not set
  62. # The default room name used by the !newroom command
  63. # Defaults to GPTBot if not set
  64. #
  65. # DefaultRoomName = GPTBot
  66. # Contents of a special message sent to the GPT API with every request.
  67. # Can be used to give the bot some context about the environment it's running in
  68. #
  69. # SystemMessage = You are a helpful bot.
  70. # Force inclusion of the SystemMessage defined above if one is defined on per-room level
  71. # If no custom message is defined for the room, SystemMessage is always included
  72. #
  73. # ForceSystemMessage = 0
  74. # Path to a custom logo
  75. # Used as room/space image and profile picture
  76. # Defaults to logo.png in assets directory
  77. #
  78. # Logo = assets/logo.png
  79. # Display name for the bot
  80. #
  81. # DisplayName = GPTBot
  82. # A list of allowed users
  83. # If not defined, everyone is allowed to use the bot
  84. # Use the "*:homeserver.matrix" syntax to allow everyone on a given homeserver
  85. #
  86. # AllowedUsers = ["*:matrix.local"]
  87. [Database]
  88. # Path of the main database
  89. # Used to "remember" settings, etc.
  90. #
  91. Path = database.db
  92. # Path of the Crypto Store - required to support encrypted rooms
  93. # (not tested/supported yet)
  94. #
  95. CryptoStore = store.db
  96. [TrackingMore]
  97. # API key for TrackingMore
  98. # If not defined, the bot will not be able to provide parcel tracking
  99. #
  100. # APIKey = abcde-fghij-klmnop
  101. [Replicate]
  102. # API key for replicate.com
  103. # Can be used to run lots of different AI models
  104. # If not defined, the features that depend on it are not available
  105. #
  106. # APIKey = r8_alotoflettersandnumbershere
  107. [HuggingFace]
  108. # API key for Hugging Face
  109. # Can be used to run lots of different AI models
  110. # If not defined, the features that depend on it are not available
  111. #
  112. # APIKey = __________________________