diff --git a/.full-env.example b/.full-env.example index a0c3be7..de666f9 100644 --- a/.full-env.example +++ b/.full-env.example @@ -15,9 +15,7 @@ FREQUENCY_PENALTY=0.0 REPLY_COUNT=1 SYSTEM_PROMPT="You are ChatGPT, a large language model trained by OpenAI. Respond conversationally" TEMPERATURE=0.8 -FLOWISE_API_URL="http://flowise:3000/api/v1/prediction/6deb3c89-45bf-4ac4-a0b0-b2d5ef249d21" -FLOWISE_API_KEY="U3pe0bbVDWOyoJtsDzFJjRvHKTP3FRjODwuM78exC3A=" LC_ADMIN="@admin:xxxxxx.xxx,@admin2:xxxxxx.xxx" -IMAGE_GENERATION_ENDPOINT="http://localai:8080/v1/images/generations" +IMAGE_GENERATION_ENDPOINT="http://127.0.0.1:7860/sdapi/v1/txt2img" IMAGE_GENERATION_BACKEND="sdwui" # openai or sdwui TIMEOUT=120.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index d6a4b16..bae8849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 1.3.0(unreleased) +## 1.3.0 - remove support for bing,bard,pandora - refactor chat logic, add self host model support - support new image generation endpoint diff --git a/README.md b/README.md index 96bd2b8..0350e4c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Introduction -This is a simple Matrix bot that support using OpenAI API, Langchain to generate responses from user inputs. The bot responds to these commands: `!gpt`, `!chat` and `!pic` and `!talk`, `!goon`, `!new` and `!lc` and `!help` depending on the first word of the prompt. +This is a simple Matrix bot that support using OpenAI API, Langchain to generate responses from user inputs. The bot responds to these commands: `!gpt`, `!chat` and `!pic` and `!new` and `!lc` and `!help` depending on the first word of the prompt. ![ChatGPT](https://i.imgur.com/kK4rnPf.jpeg) ## Feature @@ -92,8 +92,14 @@ To interact with the bot, simply send a message to the bot in the Matrix room wi ``` !pic A bridal bouquet made of succulents ``` +- `!agent` display or set langchain agent +``` +!agent list +!agent use {agent_name} +``` - `!new + {chat}` Start a new converstaion +LangChain(flowise) admin: https://github.com/hibobmaster/matrix_chatgpt_bot/wiki/Langchain-(flowise) ## Image Generation ![demo1](https://i.imgur.com/voeomsF.jpg) diff --git a/full-config.json.sample b/full-config.json.sample index 9bdd94f..aef2104 100644 --- a/full-config.json.sample +++ b/full-config.json.sample @@ -16,8 +16,6 @@ "reply_count": 1, "temperature": 0.8, "system_prompt": "You are ChatGPT, a large language model trained by OpenAI. Respond conversationally", - "flowise_api_url": "http://flowise:3000/api/v1/prediction/6deb3c89-45bf-4ac4-a0b0-b2d5ef249d21", - "flowise_api_key": "U3pe0bbVDWOyoJtsDzFJjRvHKTP3FRjODwuM78exC3A=", "lc_admin": ["@admin:xxxxx.org"], "image_generation_endpoint": "http://localai:8080/v1/images/generations", "image_generation_backend": "openai",