llm_deepseek#

class baf.nlp.llm.llm_deepseek.LLMDeepSeek(agent, name, parameters, num_previous_messages=1, global_context=None)[source]#

Bases: LLMOpenAICompatible

LLM wrapper for DeepSeek models via DeepSeek’s OpenAI-compatible API.

Requires nlp.deepseek.api_key to be set in the agent config file. The default base URL points to https://api.deepseek.com.

Example model names: "deepseek-chat", "deepseek-reasoner".

API_KEY_PROPERTY = <baf.core.property.Property object>#

Property constant used to look up the API key from the agent config file.

DEFAULT_BASE_URL = 'https://api.deepseek.com'#

Provider base URL. None → use the OpenAI SDK default (api.openai.com).

_abc_impl = <_abc._abc_data object>#