New Crowdin updates#1157
Open
This-is-XiaoDeng wants to merge 356 commits into
Open
Conversation
Up to standards ✅🟢 Issues
|
refactor(chat): 移除 self_action_ctrl 中的结果笔记存储功能
…elf-action refactor(chat): 移除 self_action_ctrl 中多余的 identity_prompt 注入
feat(chat): 添加每日日记生成功能
…, add precheck, extract constant - models.py: 移除 index=True,避免与迁移文件重复创建索引 - models.py: default=func.now() → server_default=func.now() - __main__.py: 移除 used_at=datetime.now(),让数据库自动填充 - __main__.py: 添加 matcher.type != 'message' 前置检查 - __main__.py: 提取 RANK_COMMAND_NAMES 常量替代硬编码跳过列表
✨ feat: 添加指令统计插件 - 近7天热门指令排行
[ci skip]
Migrate from hardcoded language strings to a structured Jinja2 template system for all AI prompts. This change improves prompt maintainability, allows for complex logic within templates (like conditional content and loops), and centralizes prompt management. Key changes: - Introduced a new `src/prompt/` directory containing organized Jinja2 templates (`.md.jinja`) and tool definitions (`.yaml`). - Implemented `get_message`, `get_message_text`, and `get_messages` utilities in `nonebot_plugin_openai` to handle template rendering. - Refactored multiple utility modules (`ai_agent.py`, `file.py`, `group.py`, `image.py`, `instant_mem.py`, `note_manager.py`) to use the new template engine. - Replaced the deprecated `src/plugins/nonebot_plugin_chat/utils/prompt.py`. - Added comprehensive tool descriptions in YAML format to support agentic workflows. - Improved prompt injection of dynamic context such as `current_time`, `user_id`, and session-specific variables.
Remove deprecated helper functions for handling chat completions to clean up the client utility module.
Replace manual prompt string construction in `MessageProcessor` with a Jinja2-based template system. This change migrates the system prompt logic to use `chat.md.jinja` via `get_message`, allowing for more flexible and maintainable prompt management.
…inition models Refactor the tool management system to use a more streamlined approach for generating function lists and introduce Pydantic models for function definitions. - Implement `FunctionParameterDefinition` and `MoonlarkFunctionDefinition` in `types.py` for structured tool definitions. - Replace manual `AsyncFunction` construction in `ToolManager` with `create_function_list`. - Move function generation logic to a new `utils/functions.py` module. - Remove deprecated `generate_function_list` from `utils/chat.py`. - Update `send_reaction.yaml` template syntax.
Integrate the new Jinja2-based prompt management system into the ActionDecider to replace manual message generation. - Replace `get_prompt_text` with `get_message` using `action_decider.md.jinja`. - Simplify tool definition in `ActionDecider` by using `create_function_list`. - Add `action_decider.md.jinja` to the prompt directory.
Decouple prompt templates from YAML localization files and hardcoded strings by migrating them into a dedicated modular directory structure using Jinja2. - Move prompt content from `src/lang/**/*.yaml` to `src/prompt/**/*.md.jinja`. - Implement `get_messages`, `get_message`, and `get_message_text` utilities to handle template rendering and message construction. - Reorganize prompt storage into scoped subdirectories (e.g., `moonlark_main`, `msg_summary`, `bilibili`). - Update core logic in `ego` and `message_summary` modules to utilize the new template-based retrieval system.
…guish from query_history_message
chore(deps-dev): bump ruff from 0.15.19 to 0.15.20
…-pypi chore: switch adapter-qq to upstream pypi version
feat: add /wdym plugin - What Do You Mean
…ssage feat(chat): add query_history_message tool
…actions/checkout-7 chore(deps): bump actions/checkout from 6 to 7
…-report chore(larkcave): remove submission report to chat plugin
Changed 'query_history_message' to 'fetch_history_messages' in tools __init__.py to match the actual function name defined in query_history.py. Fixes ImportError: from .query_history import query_history_message ImportError: cannot import name 'query_history_message'
…essage fix: correct function name in query_history import
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.