From 8e9bdc812b668840d0790b6566a68088c3aa77c0 Mon Sep 17 00:00:00 2001 From: XieJiSS Date: Tue, 25 Jun 2024 13:51:20 +0800 Subject: [PATCH] Update README_cn.md --- docs/continue/README_cn.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/continue/README_cn.md b/docs/continue/README_cn.md index eb5734e..1f9bed3 100644 --- a/docs/continue/README_cn.md +++ b/docs/continue/README_cn.md @@ -5,10 +5,43 @@ 开源 IDE 插件,使用 LLM 做你的编程助手. ## UI + ![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd) -## 配置 deepseek API -image +## 接入 DeepSeek API +### Tab 补全 + config.json + +```json +{ + "models": [], + "tabAutocompleteOptions": { + "template": "Please teach me what I should write in the `hole` tag, but without any further explanation and code backticks, i.e., as if you are directly outputting to a code editor. It can be codes or comments or strings. Don't provide existing & repetitive codes. If the provided prefix and suffix contain incomplete code and statement, your response should be able to be directly concatenated to the provided prefix and suffix. Also note that I may tell you what I'd like to write inside comments. \n{{{prefix}}}{{{suffix}}}\n\nPlease be aware of the environment the hole is placed, e.g., inside strings or comments or code blocks, and please don't wrap your response in ```. You should always provide non-empty output.\n", + "useCache": true, + "maxPromptTokens": 2048 + }, + "tabAutocompleteModel": { + "title": "DeepSeek-V2", + "model": "deepseek-coder", + "apiKey": REDACTED, + "contextLength": 8192, + "apiBase": "https://api.deepseek.com", + "completionOptions": { + "maxTokens": 4096, + "temperature": 0, + "topP": 1, + "presencePenalty": 0, + "frequencyPenalty": 0 + }, + "provider": "openai", + "useLegacyCompletionsEndpoint": false + } +} +``` + +### 侧边栏对话窗 + +![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/13600976/7114a8ef-c20a-4f06-91b3-2399c6b77b2d)