Skip to content

Add support for DeepSeek API in dependencies and service layers#67

Merged
dcloud347 merged 2 commits intomainfrom
dev
Jun 3, 2025
Merged

Add support for DeepSeek API in dependencies and service layers#67
dcloud347 merged 2 commits intomainfrom
dev

Conversation

@dcloud347
Copy link
Contributor

This pull request introduces support for integrating the DeepSeek API into the Prometheus application. The changes include updates to environment variables, service initialization, model handling, and test coverage to accommodate the new API.

Integration of DeepSeek API:

  • Environment Configuration:

    • Added PROMETHEUS_DEEPSEEK_API_KEY to example.env for specifying the DeepSeek API key.
  • Service Initialization:

    • Updated initialize_services in prometheus/app/dependencies.py to include DEEPSEEK_API_KEY in the service configuration.
  • Model Handling:

    • Modified __init__ and get_model in prometheus/app/services/llm_service.py to accept and utilize a deepseek_api_key. [1] [2]
    • Added logic to get_model to handle DeepSeek-specific models, including setting the API base URL and other parameters.
  • Testing:

    • Added a new test, test_get_model_deepseek, in tests/app/services/test_llm_service.py to verify the correct initialization of DeepSeek models.

@dcloud347 dcloud347 merged commit 8299941 into main Jun 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant