Kumi
63e52169a3
Resolved an issue that prevented the bot from responding when files were uploaded to encrypted rooms by implementing a workaround. The bot now tries to generate text from uploaded files and logs errors without interrupting the message flow. Upgraded the Pantalaimon dependency to ensure compatibility. Also, refined the message processing logic to handle different message types correctly and made the download_file method asynchronous to match the matrix client's expected behavior. Additionally, updated the changelog and bumped the project version to reflect these fixes and improvements. Known issues have been documented, including a limitation when using Pantalaimon where the bot cannot download/use files uploaded to encrypted rooms.
75 lines
No EOL
1.2 KiB
TOML
75 lines
No EOL
1.2 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|
|
|
|
[project]
|
|
name = "matrix-gptbot"
|
|
version = "0.3.2"
|
|
|
|
authors = [
|
|
{ name="Kumi Mitterer", email="gptbot@kumi.email" },
|
|
]
|
|
|
|
description = "Multifunctional Chatbot for Matrix"
|
|
readme = "README.md"
|
|
license = { file="LICENSE" }
|
|
requires-python = ">=3.10"
|
|
|
|
packages = [
|
|
"src/gptbot"
|
|
]
|
|
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
]
|
|
|
|
dependencies = [
|
|
"matrix-nio[e2e]",
|
|
"markdown2[all]",
|
|
"tiktoken",
|
|
"python-magic",
|
|
"pillow",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
openai = [
|
|
"openai>=1.2",
|
|
"pydub",
|
|
]
|
|
|
|
wolframalpha = [
|
|
"wolframalpha",
|
|
]
|
|
|
|
e2ee = [
|
|
"pantalaimon>=0.10.5",
|
|
]
|
|
|
|
all = [
|
|
"matrix-gptbot[openai,wolframalpha,e2ee]",
|
|
"geopy",
|
|
"beautifulsoup4",
|
|
]
|
|
|
|
dev = [
|
|
"matrix-gptbot[all]",
|
|
"black",
|
|
"hatchling",
|
|
"twine",
|
|
"build",
|
|
]
|
|
|
|
[project.urls]
|
|
"Homepage" = "https://kumig.it/kumitterer/matrix-gptbot"
|
|
"Bug Tracker" = "https://kumig.it/kumitterer/matrix-gptbot/issues"
|
|
|
|
[project.scripts]
|
|
gptbot = "gptbot:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/gptbot"] |