-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Pack #363
Merged
Feature Pack #363
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
515b6f1
:sparkles: feat(docs): add self-looping and advantages of language model
sudoskys 683316a
:bug: fix: update start commands in README files
sudoskys 30f03a7
fix(schema):hint
sudoskys 09f06a7
feat(docs):update
sudoskys 9112908
feat(task_schema):为每个Task对象链配备系列ID,用于识别不同的Task的派系
sudoskys 41fa3fe
feat(llm_task):add system prompt
sudoskys 6d2b6c8
Wrap send message in ChainFunc class
sudoskys b2d47b1
:sparkles: feat(fuse): Update exception handling in plugin exception …
sudoskys bb169c5
:truck: chore: Update dependency manager to pdm in README.md
sudoskys a7fac83
:art: chore(pyproject.toml): update project dependencies and metadata
sudoskys f7f4078
feat(pm2): update start commands for llm_sender and llm_receiver
sudoskys 2192b9b
feat(pm2): update start commands for llm_sender and llm_receiver
sudoskys 989633d
:truck: chore(Dockerfile): Update Dockerfile with improved package in…
sudoskys 441d0ba
:truck: chore(Dockerfile): Update Dockerfile with improved package in…
sudoskys 3c12357
Wrap sending message in ChainFunc
sudoskys ab02bfb
feat: Update dependencies in pyproject.toml
sudoskys 194bdfc
feat: Update dependencies in pyproject.toml
sudoskys 62490c8
feat: Update dependencies in pyproject.toml
sudoskys 007ea2b
feat: Update dependencies in pyproject.toml
sudoskys 794a5b9
feat: Update dependencies in pyproject.toml
sudoskys 4ef9333
feat: Update dependencies in pyproject.toml
sudoskys 2a7bd4f
:rocket: chore(pyproject.toml): update dependencies
sudoskys 022d0c6
:rocket: chore(pyproject.toml): update dependencies
sudoskys 6dc2b5b
:rocket: chore(pyproject.toml): update dependencies
sudoskys d35d3d4
:rocket: chore(pyproject.toml): update dependencies
sudoskys f94c116
:rocket: chore(pyproject.toml): update dependencies
sudoskys 15bf8f3
:rocket: chore(pyproject.toml): update dependencies
sudoskys 2d6be9c
:rocket: chore(pyproject.toml): update dependencies
sudoskys 83a5b67
:rocket: chore(pyproject.toml): update dependencies
sudoskys 90332f0
Wrap sending message in ChainFunc's notify_user method
sudoskys fdc9613
:building_construction: chore: Update Python version in Dockerfile
sudoskys 9c93ed5
:building_construction: chore: Update Python version in Dockerfile
sudoskys 78b4bb7
:bug: fix: Update dependencies for compatibility with hikari 2.0.0.de…
sudoskys a351d1d
:bug: fix: Update dependencies for compatibility with hikari 2.0.0.de…
sudoskys 45d17fb
feat: Add 'Level High' label for bugfixes and 'Broken Change' label f…
sudoskys 097c9f6
:hammer: chore: fix line formatting in function.py and receiver_clien…
sudoskys ff8735f
✨ feat: Update llmkira/task/schema.py
sudoskys f3f6f90
feat: Add pre-commit hooks for code quality checks
sudoskys 55c7c29
feat(pm2.json):add
sudoskys ce2b7f4
feat(pm2.json):add
sudoskys ad0c2fb
feat(pm2.json):add
sudoskys 0140839
feat(pm2.json):fix
sudoskys b0f1789
feat(pm2.json):ChainBat
sudoskys bbbf90e
feat(pm2.json):ChainBat
sudoskys a58a322
feat(pm2.json):ChainBat
sudoskys ade5cc7
feat(pm2.json):ChainBat
sudoskys 02cc230
feat(pm2.json):ChainBat
sudoskys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.7 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,31 @@ | ||
# 第一个阶段 | ||
FROM python:3.11-buster as builder | ||
FROM python:3.9-buster as builder | ||
|
||
RUN apt update && apt install -y build-essential \ | ||
&& pip install poetry==1.6.1 | ||
RUN apt update && \ | ||
apt install -y build-essential && \ | ||
pip install -U pip setuptools wheel && \ | ||
pip install pdm | ||
|
||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=1 \ | ||
POETRY_VIRTUALENVS_CREATE=1 \ | ||
POETRY_CACHE_DIR=/tmp/poetry_cache | ||
|
||
WORKDIR /app | ||
|
||
COPY ["pyproject.toml", "poetry.lock", "/app/"] | ||
|
||
VOLUME ["/redis", "/rabbitmq", "/mongodb", "run.log", "/config_dir"] | ||
|
||
RUN poetry config virtualenvs.in-project true && \ | ||
poetry install --all-extras --no-root && rm -rf $POETRY_CACHE_DIR | ||
COPY pyproject.toml pdm.lock README.md /project/ | ||
WORKDIR /project | ||
RUN pdm sync -G bot --prod --no-editable | ||
|
||
# 第二个阶段 | ||
FROM python:3.11-slim-buster as runtime | ||
FROM python:3.9-slim-buster as runtime | ||
|
||
RUN apt update && \ | ||
apt install -y npm && \ | ||
RUN apt update && \ | ||
apt install -y npm && \ | ||
npm install pm2 -g && \ | ||
pip install poetry==1.6.1 && \ | ||
apt install ffmpeg -y | ||
apt install -y ffmpeg && \ | ||
pip install pdm | ||
|
||
ENV VIRTUAL_ENV=/app/.venv \ | ||
PATH="/app/.venv/bin:$PATH" | ||
VOLUME ["/redis", "/rabbitmq", "/mongodb", "/run.log", "/config_dir"] | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/.venv /app/.venv | ||
COPY --from=builder /project/.venv /app/.venv | ||
|
||
COPY pm2.json ./ | ||
COPY config_dir ./config_dir | ||
COPY . /app | ||
|
||
CMD [ "pm2-runtime", "pm2.json" ] | ||
CMD [ "pm2-runtime", "pm2.json" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command instructions for running the application have been updated to use
poetry
, but it's important to ensure that thepoetry
dependency management tool is mentioned in the prerequisites or installation instructions within the README. If it's not already included, users may encounter issues when trying to run the commands without havingpoetry
installed.