ErisPulse AIChat 聊天机器人模块
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
ErisPulse-AIChat 模块文档
简介
ErisPulse-AIChat 是一个基于OpenAI的智能聊天机器人模块,支持多种触发方式和上下文管理。
安装
ep install AIChat
配置
安装完毕后首次加载模块时,会自动创建一个名为 AIChat 的配置文件,配置文件内容如下:
[AIChat]
trigger_words = ["AI"] # 触发词列表,可以是单个或多个
system_prompt = "你是一个AI助手,你叫AI,你是一个智能聊天机器人"
clear_command = "/clear" # 清除历史记录指令
max_history_length = 10 # 最大历史消息长度
触发方式说明
-
默认模式:
- 消息中包含任意触发词即可触发
- 例如: "你好AI"、"AI你好"、"这个AI很聪明"
-
通配符模式:
- 触发词列表中定义的触发词可以包含通配符
*/? - 例如: "AI*"、"AI?你好"
- 触发词列表中定义的触发词可以包含通配符
其他功能
- 使用
/clear指令可以清除当前会话的历史记录 - 自动管理对话上下文,可配置最大历史消息长度
- 支持在消息前显示用户昵称,帮助AI区分不同用户
依赖
本模块依赖 ErisPulse 的 OpenAI 模块,以下是 OpenAI 模块的配置文件示例:
[OpenAI]
base_url = "https://api.openai.com/v1"
key = "您的API密钥"
model = "使用的模型"
[OpenAI.Args]
temperature = 0.7
max_tokens = 1024
参考链接
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erispulse_aichat-3.0.3.tar.gz.
File metadata
- Download URL: erispulse_aichat-3.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649ca4939e1c383c6e39963b3941f78c9e8fabd06c40d2ebb48ffda8ed705d2c
|
|
| MD5 |
853ecf1cc50d9a22546322eb2e9795d1
|
|
| BLAKE2b-256 |
48e8a72603f4cf4189c55e49b522f70f08f18baea6557d73853e50542e26e8c6
|
Provenance
The following attestation bundles were made for erispulse_aichat-3.0.3.tar.gz:
Publisher:
python-publish.yml on wsu2059q/ErisPulse-AIChat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_aichat-3.0.3.tar.gz -
Subject digest:
649ca4939e1c383c6e39963b3941f78c9e8fabd06c40d2ebb48ffda8ed705d2c - Sigstore transparency entry: 280019977
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-AIChat@2a4e15e347b2805d8183baecf85c1a8168324f00 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2a4e15e347b2805d8183baecf85c1a8168324f00 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file erispulse_aichat-3.0.3-py3-none-any.whl.
File metadata
- Download URL: erispulse_aichat-3.0.3-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3484e30665f4b3ab1a686c10954c44e0454f83cb9f682100f126ec58b72ded69
|
|
| MD5 |
ff736d0bd2292be75ef36fb7214dce64
|
|
| BLAKE2b-256 |
5383bef77146959c41152bc552ac5d2411807dcc17963365cd50aec3a8f2a02b
|
Provenance
The following attestation bundles were made for erispulse_aichat-3.0.3-py3-none-any.whl:
Publisher:
python-publish.yml on wsu2059q/ErisPulse-AIChat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_aichat-3.0.3-py3-none-any.whl -
Subject digest:
3484e30665f4b3ab1a686c10954c44e0454f83cb9f682100f126ec58b72ded69 - Sigstore transparency entry: 280019987
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-AIChat@2a4e15e347b2805d8183baecf85c1a8168324f00 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2a4e15e347b2805d8183baecf85c1a8168324f00 -
Trigger Event:
workflow_dispatch
-
Statement type: