Update simplemind/providers/deepseek.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
2025-01-10 11:40:20 -05:00
committed by GitHub
parent 0c1f225252
commit d963bc0b1c
+1 -1
View File
@@ -9,8 +9,8 @@ class Deepseek(OpenAI):
DEFAULT_MODEL = "deepseek-chat"
def __init__(self, api_key: str | None = None):
api_key = api_key or os.getenv("DEEPSEEK_API_KEY")
super().__init__(api_key=api_key)
self.api_key = os.getenv("DEEPSEEK_API_KEY")
self.endpoint = "https://api.deepseek.com/v1"
@cached_property