diff --git a/README.md b/README.md index 762944f..33625f9 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,13 @@ Note, if you are using third party service, you need to `export OPENAI_API_BASE= 2. export TOGETHER_API_KEY=${the_key} 3. use `qwen_pro: ${message}` to ask +## Bot -> dify + +1. visit https://cloud.dify.ai/ get selected Chatbot's API Secret key +2. export DIFY_API_KEY=${the_key} +3. use `dify: ${message}` to ask + +Note, currently its support dify Chatbot with instructions(System prompt) and different MODEL with its parameters. ## HOW TO Install and Run diff --git a/handlers/dify.py b/handlers/dify.py index 058a058..7cbd6ac 100644 --- a/handlers/dify.py +++ b/handlers/dify.py @@ -23,7 +23,7 @@ if DIFY_API_KEY: # Global history cache dify_player_dict = {} -dify_player_c = {} +dify_player_c = {} # History cache is supported by dify cloud conversation_id. def dify_handler(message: Message, bot: TeleBot) -> None: