Search this site
Embedded Files
DeepSeek

Easiest way to use DeepSeek API 

I've been experimenting with using DeepSeek API with Home Assistant, and I found out the easiest way to integrate it is just to use the official OpenAI Conversation integration and inject an environmental variable. So here are the steps to follow:

  1. Install hass-environmental-variable

  2. Add this to your configuration.yaml:
    environment_variable: OPENAI_BASE_URL: "https://api.deepseek.com/v1"

  3. Restart your system and add the OpenAI Conversation integration, when asked for the API key use the one you crated for DeepSeek

  4. Open the integration and uncheck "Recommended model settings"

  5. Set "model" to "deepseek-chat" and increase maximum tokens to 1024, then reload the integration

That's it, it should work now.
For some reason home assistant developers keep rejecting any PRs trying to add an easier option to switch the OpenAI endpoint in the official integration.


Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse