Kumi
8e0cffe02a
Refactored the handling of AI providers to support multiple AI services efficiently, introducing a `BaseAI` class from which all AI providers now inherit. This change modernizes our approach to AI integration, providing a more flexible and maintainable architecture for future expansions and enhancements. - Adopted `gpt-4o` and `dall-e-3` as the default models for chat and image generation, respectively, aligning with the latest advancements in AI capabilities. - Integrated `ruff` as a development dependency to enforce coding standards and improve code quality through consistent linting. - Removed unused API keys and sections from `config.dist.ini` to streamline configuration management and clarify setup processes for new users. - Updated the command line tool for improved usability and fixed previous issues preventing its effective operation. - Enhanced OpenAI integration with advanced settings for temperature, top_p, frequency_penalty, and presence_penalty, enabling finer control over AI-generated outputs. This comprehensive update not only enhances the bot's performance and usability but also lays the groundwork for incorporating additional AI providers, ensuring the project remains at the forefront of AI-driven chatbot technologies. Resolves #13
78 lines
No EOL
1.4 KiB
TOML
78 lines
No EOL
1.4 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|
|
|
|
[project]
|
|
name = "matrix-gptbot"
|
|
version = "0.3.11"
|
|
|
|
authors = [
|
|
{ name="Kumi Mitterer", email="gptbot@kumi.email" },
|
|
{ name="Private.coffee Team", email="support@private.coffee" },
|
|
]
|
|
|
|
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]>=0.24.0",
|
|
"markdown2[all]",
|
|
"tiktoken",
|
|
"python-magic",
|
|
"pillow",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
openai = [
|
|
"openai>=1.2",
|
|
"pydub",
|
|
]
|
|
|
|
wolframalpha = [
|
|
"wolframalpha",
|
|
]
|
|
|
|
trackingmore = [
|
|
"trackingmore-api-tool",
|
|
]
|
|
|
|
all = [
|
|
"matrix-gptbot[openai,wolframalpha,trackingmore]",
|
|
"geopy",
|
|
"beautifulsoup4",
|
|
]
|
|
|
|
dev = [
|
|
"matrix-gptbot[all]",
|
|
"black",
|
|
"hatchling",
|
|
"twine",
|
|
"build",
|
|
"ruff",
|
|
]
|
|
|
|
[project.urls]
|
|
"Homepage" = "https://git.private.coffee/privatecoffee/matrix-gptbot"
|
|
"Bug Tracker" = "https://git.private.coffee/privatecoffee/matrix-gptbot/issues"
|
|
"Source Code" = "https://git.private.coffee/privatecoffee/matrix-gptbot"
|
|
|
|
[project.scripts]
|
|
gptbot = "gptbot.__main__:main_sync"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/gptbot"] |