# DeepseekChatAgent **Repository Path**: TMomster/DeepseekChatAgent ## Basic Information - **Project Name**: DeepseekChatAgent - **Description**: No description available - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-15 - **Last Updated**: 2025-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Deepseek Chat Agent 基于Deepseek API实现的命令行聊天代理程序,支持多语言切换、角色扮演等功能。 ## 主要功能 - 🗣️ 与Deepseek AI进行自然语言对话 - 🌐 多语言支持(CN/EN/JP/RU) - ⚙️ 系统命令支持(清屏/清除对话/重启等) - 🃏 角色卡片切换功能 - 🔑 API密钥管理 - 🔄 对话上下文维护 ## 快速开始 ### 环境要求 - Python 3.7+ - 有效Deepseek API密钥 ### 安装依赖 pip install openai ### 配置API密钥 1. 在`ChatAgent/user_configs/`目录下创建`API.txt` 2. 将API密钥写入文件(单行) ### 运行 launch.exe **常用命令**: - `\exit` 退出程序 - `\help` 显示帮助信息 - `\clear` 清除对话上下文 - `\cls` 清屏 - `\lang` 切换语言 - `\role` 切换角色卡片 - `\restart` 重启程序 ## 项目结构 ChatAgent/ ├── user_configs/ # 用户配置文件 │ ├── API.txt # API密钥存储 │ └── init.py ├── system_configs/ │ ├── Messages.py # 多语言消息模板 │ └── init.py └── ChatAgent.py # 主程序 ## 注意事项 1. API密钥请妥善保管,不要泄露 2. 切换语言时会重置对话上下文 3. 角色卡片配置请参考`user_configs/__init__.py` 4. 程序异常时会自动打印错误堆栈 ## 兼容性 - Windows/macOS/Linux - Python 3.10+