Files
wehub-resource-sync fbfefa28d3
CodeQL / Analyze (python) (push) Failing after 0s
Release / Build (push) Failing after 1s
Release / Release (push) Waiting to run
Test Suite / Unit Tests (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:18:10 +08:00

24 lines
627 B
Python

"""
DeepSeek Module
"""
from langchain_openai import ChatOpenAI
class DeepSeek(ChatOpenAI):
"""
A wrapper for the ChatOpenAI class (DeepSeek uses an OpenAI-like API) that
provides default configuration and could be extended with additional methods
if needed.
Args:
llm_config (dict): Configuration parameters for the language model.
"""
def __init__(self, **llm_config):
if "api_key" in llm_config:
llm_config["openai_api_key"] = llm_config.pop("api_key")
llm_config["openai_api_base"] = "https://api.deepseek.com/v1"
super().__init__(**llm_config)