config.dist.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. [Database]
  75. # Settings for the DuckDB database.
  76. # If not defined, the bot will not be able to remember anything, and will not support encryption
  77. # N.B.: Encryption doesn't work as it is supposed to anyway.
  78. Path = database.db
  79. [TrackingMore]
  80. # API key for TrackingMore
  81. # If not defined, the bot will not be able to provide parcel tracking
  82. #
  83. # APIKey = abcde-fghij-klmnop