Update README.md

This commit is contained in:
XieJiSS 2024-06-25 13:49:30 +08:00 committed by GitHub
parent 1c97065855
commit d7e76d1ba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
<img width="1462" alt="image" src="https://github.com/deepseek-ai/awesome-deepseek-integration/assets/13600976/7114a8ef-c20a-4f06-91b3-2399c6b77b2d">
### 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}}}<hole></hole>{{{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)