From d7e76d1ba8c59ca36555a4ba51dfa4a25e8448f2 Mon Sep 17 00:00:00 2001 From: XieJiSS Date: Tue, 25 Jun 2024 13:49:30 +0800 Subject: [PATCH] Update README.md --- docs/continue/README.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/docs/continue/README.md b/docs/continue/README.md index b0f2a2a..27efe22 100644 --- a/docs/continue/README.md +++ b/docs/continue/README.md @@ -9,7 +9,41 @@ Continue will generate, refactor, and explain entire sections of code with LLMs. ![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd) -## Integrate with Deepseek API +## Integrate with DeepSeek API -image +### Tab Completion +Please use the following config before we release official FIM support: + + 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 + } +} +``` + +### Chat with model + +![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/13600976/7114a8ef-c20a-4f06-91b3-2399c6b77b2d)