def _create_deepseek_model():
    """Helper function to create a Deepseek model."""
    deepseek_api_key = Configuration.get("DEEPSEEK_API_KEY")
    if not deepseek_api_key:
        return None, {"status_code": 401, "detail": "No API key provided. Please set DEEPSEEK_API_KEY in your configuration."}

    return OpenAIModel(
        'deepseek-chat',
        provider=OpenAIProvider(
            base_url='https://api.deepseek.com',
            api_key=deepseek_api_key
        )
    ), None
Helper function to create a Deepseek model.
src/upsonic/server/level_utilized/utility.py