diff --git a/.env b/.env new file mode 100644 index 0000000..bc78c0c --- /dev/null +++ b/.env @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index afe6adf..b169cf9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Environment files .env +env/ .apikey # 同时忽略旧密钥文件 # Python diff --git a/README.md b/README.md index 172d7e1..f4e8771 100644 --- a/README.md +++ b/README.md @@ -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 -yizhou@ii.inc (Dango233) \ No newline at end of file +yizhou@ii.inc (Dango233) diff --git a/lang.py b/lang.py index 8d256ed..85c0f54 100644 --- a/lang.py +++ b/lang.py @@ -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",