Closed sudoskys closed 4 months ago
The recent updates primarily enhance functionality across various components of the llmkira
project. Key changes include the addition of a new search function using DuckDuckGo, the switch from Edge TTS to Google's gTTS for text-to-speech, and improvements in message formatting with markdown across different messaging platforms. The login process and task execution conditions have also been refined, alongside general updates to dependencies and serialization methods.
File(s) | Change Summary |
---|---|
README.md |
Updated login requirements and added Line as a platform. |
app/middleware/llm_task.py |
Added warning log and mock message in pair_check . |
app/receiver/function.py |
Modified chat continuation logic in task execution. |
app/sender/.../__init__.py |
Unified removal of json import and adoption of dict2markdown for message formatting across Discord, Kook, Slack, and Telegram platforms. |
app/sender/util_func.py |
Introduced dict2markdown function. |
llmkira/extra/plugins/search/... |
Enhanced search functionality with DuckDuckGo integration and updated default behaviors in search functions. |
llmkira/extra/voice/__init__.py |
Switched from Edge TTS to Google's gTTS for text-to-speech conversion. |
llmkira/logic/__init__.py |
Enhanced LLMLogic with new serialization methods and added type imports. |
pyproject.toml |
Updated project version and dependencies, including the switch from edge-tts to gTTS . |
README.md (67)
Near line 40: Possible spelling mistake found. Context: ...οΈ > Python>=3.9 This project uses the ToolCall feature. It integrates a message queui... --- Near line 42: βprior toβ might be wordy. Consider a shorter alternative. Context: ...ng plugin mechanisms and authentication prior to plugin execution. The bot adheres to t... --- Near line 45: Possible spelling mistake found. Context: ...in execution. The bot adheres to the **Openai Format Schema**. Please adapt using [ga... --- Near line 46: Possible spelling mistake found. Context: ...ps://github.com/Portkey-AI/gateway) or [one-api](https://github.com/songquanpeng/one-ap... --- Near line 48: Possible typo: you repeated a whitespace Context: ...quanpeng/one-api) independently. | Demo | Vision With Voice ... --- Near line 48: Possible typo: you repeated a whitespace Context: ... | Vision With Voice | Code Interpreter ... --- Near line 48: Possible typo: you repeated a whitespace Context: ... | Code Interpreter | |-------------------------------------... --- Near line 81: Loose punctuation mark. Context: ...s ### π Login Modes - `Login via url`: Use `/login $/v1$<... --- Near line 84: The currency mark is usually put at the beginning of the number. Context: ...ents/credential.py#L20). - `Login`: Use `/login https:// /v1$ $ $ # not must ``` use `/env VOICE_REPLY_ME=NONE` to disable t... --- Near line 209: This sentence does not start with an uppercase letter. Context: ...CE_REPLY_ME=NONE` to disable this env. check the source code in `llmkira/extra/voice... --- Near line 210: Possible spelling mistake found. Context: ...ble this env. check the source code in `llmkira/extra/voice_hook.py`, learn to write yo... --- Near line 218: Possible spelling mistake found. Context: ...m) ## π Notice > This project, named OpenAiBot, signifying "Open Artificial Intelligen...
pyproject.toml (2)
`3-3`: Version update to "1.0.4" is appropriate for introducing new features. --- `63-71`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [53-68] Dependency updates are correctly reflected in the file.llmkira/logic/__init__.py (2)
`21-22`: Addition of boolean properties to classes enhances clarity and usability. Also applies to: 36-37 --- `89-131`: Addition of serialization and deserialization methods to `LLMLogic` class is well-implemented.llmkira/extra/voice/__init__.py (1)
`102-110`: Modification to use Google's gTTS for text-to-speech conversion is correctly implemented.llmkira/extra/plugins/search/__init__.py (2)
`26-34`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [20-31] Integration of `search_in_duckduckgo` as a fallback in `search_on_serper` is correctly implemented. --- `165-173`: Update to `function_response` to include additional information is well-implemented.app/sender/util_func.py (1)
`228-232`: Addition of `dict2markdown` function to convert dictionary to markdown format is correctly implemented.README.md (2)
`84-84`: Update to the login process to require an additional parameter for the tool model is correctly documented. --- `100-100`: Addition of Line as a platform with no support for triggering by reply is correctly documented.app/middleware/llm_task.py (1)
`105-105`: Ensure the new warning log is integrated with the system's logging configuration.app/receiver/function.py (2)
`276-279`: Ensure the condition string is correctly formatted and encapsulates all necessary details for the LLM to make an informed decision. --- `276-279`: Consider adding error handling for the LLM call to handle potential failures gracefully.app/sender/slack/__init__.py (2)
`239-250`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [242-256] Ensure that `dict2markdown` correctly handles all edge cases, such as empty or complex data structures. --- `239-250`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [242-256] Consider adding error handling for the `dict2markdown` function to manage any potential formatting failures.app/sender/kook/__init__.py (2)
`399-399`: Ensure that `dict2markdown` correctly handles all edge cases, such as empty or complex data structures. --- `399-399`: Consider adding error handling for the `dict2markdown` function to manage any potential formatting failures.app/sender/telegram/__init__.py (2)
`239-252`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [243-260] Ensure that `dict2markdown` correctly handles all edge cases, such as empty or complex data structures. --- `239-252`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [243-260] Consider adding error handling for the `dict2markdown` function to manage any potential formatting failures.app/sender/discord/__init__.py (2)
`38-38`: The addition of `dict2markdown` to the import list is noted. --- `394-394`: Using `dict2markdown` for formatting environment variables enhances readability. Ensure it handles edge cases like special characters or very large data sets.
Summary by CodeRabbit
pyproject.toml
.