Setting up Deepseek FIM in Twinny
Access Providers in Twinny and configure:
Label: Deepseek FIM
Type: fim
FIM Template: deepseek
Provider: deepseek
Protocol: https
Model Name: deepseek-chat
Hostname: api.deepseek.com
API Path: /beta/completions
Add your API key and save.
What it Does
FIM (Fill-in-Middle) completes code between a prefix and suffix. Perfect for:
- Function bodies
- Method implementations
- Missing code segments
Limits
- 4K tokens max per completion
- Requires valid API key
That's it - you now have smart code completion in Twinny.