Skip to content

.env config file, virtual env, indent command - LH #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# API Connection Settings

# Add your API Key

API_KEY=sk-

API_URL=https://api.deepseek.com/beta
API_MODEL=deepseek-reasoner
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Environment files
.env
env/
.apikey # 同时忽略旧密钥文件

# Python
Expand Down
39 changes: 25 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,37 @@ Due to degraded performance of official DeepSeek API - We recommend seeking alte

**Prerequisites**: Python 3.11+ | Valid [Deepseek API Key](https://platform.deepseek.com/) or OpenAI SDK compatible API.

```bash
# Clone repository
git clone https://github.com/Intelligent-Internet/CoT-Lab-Demo
cd CoT-Lab
### Clone repository

# Install dependencies
pip install -r requirements.txt
git clone https://github.com/Intelligent-Internet/CoT-Lab-Demo
cd CoT-Lab-Demo

# Configure environment
API_KEY=sk-****
API_URL=https://api.deepseek.com/beta
API_MODEL=deepseek-reasoner
### Add to your .env file

API_KEY, API_URL, API_MODEL

### Start virtual environment

python3 -m venv env
source env/bin/activate

For Windows

python3 -m venv env
.\env\Scripts\activate

### Install dependencies

pip install -r requirements.txt

### Launch application

python app.py

# Launch application
python app.py
```


## 📄 License
MIT License © 2024 [ii.inc]

## Contact
[email protected] (Dango233)
[email protected] (Dango233)
2 changes: 1 addition & 1 deletion lang.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# lang.py
LANGUAGE_CONFIG = {
"en": {
"title": "## CoT-Lab: Human-AI Co-Thinking Laboratory \nFollow, learn, and iterate the thought within one turn. Consider clone the repo and run with your own API key for better experience. \n GitHub: https://github.com/Intelligent-Internet/CoT-Lab-Demo",
"title": "## CoT-Lab: Human-AI Co-Thinking Laboratory \nFollow, learn, and iterate the thought within one turn. Consider cloning the repo and run with your own API key for a better experience. \n GitHub: https://github.com/Intelligent-Internet/CoT-Lab-Demo",
"prompt_label": "Task Description - Prompt",
"prompt_placeholder": "Enter your prompt here...",
"editor_label": "Thought Editor",
Expand Down