deepseek_r1
What it is
- A non-functional template for configuring a “DeepSeek R1” chat model for the Software Engineer domain.
- Currently uses
langchain_openai.ChatOpenAIas a placeholder and logs warnings/errors.
Public API
create_model() -> ChatOpenAI | None- Logs a warning that the model is not functional yet.
- Reads
DEEPSEEK_API_KEYvianaas_abi.secret.get. - Returns:
- a
ChatOpenAIinstance configured withmodel="deepseek-r1"(placeholder) if the key exists Noneif the key is missing (and logs an error)
- a
- Module variable:
model- Always
None(the creation call is commented out).
- Always
Configuration/Dependencies
- Environment/secret:
DEEPSEEK_API_KEY(required; retrieved vianaas_abi.secret.get("DEEPSEEK_API_KEY"))
- Python dependencies:
langchain_openai.ChatOpenAInaas_abi.secretnaas_abi_core.logger
Usage
from naas_abi_marketplace.domains.software_engineer.models.deepseek_r1 import create_model
model = create_model()
if model is None:
raise RuntimeError("Missing DEEPSEEK_API_KEY or model template not usable")
Caveats
- Marked “NOT FUNCTIONAL YET” in code and logs; it is a template only.
- Uses
ChatOpenAIwith a placeholder model name ("deepseek-r1"); no actual DeepSeek integration is implemented. - The module-level
modelis not initialized (alwaysNone).