-
-
Notifications
You must be signed in to change notification settings - Fork 26
Plugins ‐ Transform Text Output
You can use plugins to process responses before they are displayed.
-
Create a python file and save it in folder "plugins".
-
Write your own text transformer method
-
Append the method for text transformation to config.outputTransformers
For example, change all characters to upper cases:
from letmedoit import config
def convertToUpperCases(text):
return text.upper()
config.outputTransformers.append(convertToUpperCases)
Another example, ChatGPT modals is currently weak to produce responses in traditional Chinese characters. When ChatGPT is asked to answer in traditional Chinese, the output is usually mixed with some simplified Chinese characters. The following plugin ensure that all simplified Chinese characters are converted into traditional Chinese characters before they are displayed:
from letmedoit import config
from opencc import OpenCC
def convertToTraditionalChinese(text):
if text:
return OpenCC('s2t').convert(text)
else:
return text
config.outputTransformers.append(convertToTraditionalChinese)
https://github.com/eliranwong/letmedoit/wiki/Plugins-%E2%80%90-Overview
Installation
Installation on Android
Install a Supported Python Version
Install ffmpeg
Android Support
Install LetMeDoIt AI on Android Termux App
Automatic Upgrade Option
Quick Guide
Action Menu
ChatGPT API Key
Use GPT4 Models
Google API Setup
ElevenLabs API Setup
OpenWeatherMap API Setup
Run Local LLM Offline
Token Management
Command Line Interface Options
Command Execution
Chat-only Features
Developer Mode
Save Chart Content Locally
Work with Text Selection
Work with File Selection
System Tray
Custom Key Bindings
Examples
Features
Change Assistant Name
Setup Multiple LetMeDoIt Assistants
Memory Capabilities
Data Visualization
Analyze Files
Analyze Images
Analyze Audio
Google and Outlook Calendars
Python Code Auto‐heal Feature
Integration with AutoGen
Integration with Google AI Tools
Integration with Open Interpreter
Speak to LetMeDoIt AI
LetMeDoIt Speaks
Speak multi‐dialects
Create a map anytime
Modify your images with simple words
Work with Database Files
Create a Team of AI Assistants
Search and Load Chat Records
Search Weather Information
Search Financial Data
Social Media
Plugins ‐ Overview
Plugins - How to Write a Custom Plugin
Plugins ‐ Add Aliases
Plugins ‐ Input Suggestions
Plugins ‐ Install Additional Packages
Plugins ‐ Predefined Contexts
Plugins ‐ Transform Text Output
Plugins ‐ Work with LetMeDoIt AI Configurations
Plugins ‐ Function Calling
Plugins ‐ Run Codes with Specific Packages
Plugins ‐ Work with Non‐conversational Model
Plugins ‐ Integrate Text‐to‐speech Feature
Plugins ‐ Integrate Other Shared Utilities