Simplified Chinese instructions: README_CN.md
☘️ Project Address: https://github.com/CQUPTLei/DeepSeek_HTML/tree/master
C:\USERS\14134\DESKTOP\DEEPSEEK
│ .gitignore
│ DeepSeek.html # All code in one file (not recommended)
│ index.html # Webpage launch file
│ README.md # readme
│
├─chat_history
│ example.json # Chat history
│
├─css
│ style.css # Styles
│
└─js
config.js # Configuration
config_example.js # Configuration example
function.js # Main functionality implementationDeepSeek'sV3model andR1model;- Multi-turn dialogue;
- Streaming output;
- Save conversations as
jsonfiles. Markdownrendering;- Formula rendering;
- Copy output as markdown format.
- Clone the project locally:
git clone [email protected]:CQUPTLei/DeepSeek_HTML.gitDownloading the Zip file is also acceptable.
- Go to the DeepSeek open platform to recharge and apply for an API key: https://platform.deepseek.com/api_keys
- The price is quite affordable; I used 60,000 tokens for only 0.3 yuan.
- Copy the API key and paste it into the appropriate location in:
js/config_example.js. Rename this file to:config.js. - Create a new empty
jsonfile in thechat_historydirectory, or useexample.jsonas well. - Run index.html and follow the prompts to select where to save the chat.
Note: Currently only supports
ChromeandEdgebrowsers.
- Output rendering optimization;
- File storage logic needs optimization;
- Output of the reasoning process of the inference model.
Refer to the DeepSeek development documentation: https://api-docs.deepseek.com/zh-cn/
-
For compatibility with OpenAI, you can also set base_url to
https://api.deepseek.com/v1to use, but note that v1 here is not related to the model version. -
The deepseek-chat model has been fully upgraded to DeepSeek-V3, with no changes to the interface. By specifying model='deepseek-chat', you can call DeepSeek-V3.
-
deepseek-reasoner is the latest reasoning model from DeepSeek, DeepSeek-R1. By specifying model='deepseek-reasoner', you can call DeepSeek-R1.
