-
Notifications
You must be signed in to change notification settings - Fork 668
Add DeepSeek Provider Support #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add DeepSeek provider implementation with OpenAI-compatible API - Implement dynamic switching between chat and coder models based on content - Add comprehensive test suite with mock responses - Add error handling for DeepSeek-specific API errors - Add code pattern detection for model switching - Update config with DeepSeek provider settings The implementation includes: - Content-aware model selection - Streaming response handling - Error handling with detailed messages - Test coverage for edge cases - Debug logging for troubleshooting Files changed: - lua/avante/config.lua - lua/avante/providers/deepseek.lua - tests/deepseek_spec.lua
- Add cursor rules files (.cursorrules and *.cursorrules) - Add test documentation (tests/README.md) - Add test error logs (tests/errorlog.txt and tests/*.log)
I have to say this is a perfect PR. |
nice! |
cool |
You can use this command to solve the lua style lint problem: |
- Fix formatting in tests/deepseek_spec.lua to comply with stylua rules - Adjust indentation and spacing - Fix line length issues - Ensure consistent code style This commit addresses the CI lint check failures in the PR.
What about Mistral.ai , they have amazing models r |
b9104b8
to
de1535b
Compare
Yeah, I've been used avante.nvim with deepseek-v3 model 2 days. opts = {
provider = "openai",
auto_suggestions_provider = "openai", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
openai = {
endpoint = "https://api.deepseek.com/v1",
model = "deepseek-chat",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
["local"] = false,
},
} |
@Plastikov Thank you for your PR. The test code in your PR is very meaningful to me, and I will introduce tests for Avante next. |
Implements DeepSeek API as a new provider for avante.nvim, enabling dynamic model switching between chat and code modes.
Features
Changes
Testing
Tests can be run using:
nvim --headless -c "PlenaryBustedDirectory tests/deepseek_spec.lua"
Current test results:
Next Steps