Browse Source

Merge branch 'feature/luojunhui/2025-08-04-auto-add-toutiao-accounts' of Server/LongArticleTaskServer into master

luojunhui 3 months ago
parent
commit
92464f9e7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      applications/api/deep_seek_official_api.py

+ 1 - 1
applications/api/deep_seek_official_api.py

@@ -18,7 +18,7 @@ def fetch_deepseek_completion(
     output_type: str = "text",
     output_type: str = "text",
     tool_calls: bool = False,
     tool_calls: bool = False,
     tools: List[Dict] = None,
     tools: List[Dict] = None,
-) -> Optional[Dict, List]:
+) -> Optional[Dict | List]:
     messages = [{"role": "user", "content": prompt}]
     messages = [{"role": "user", "content": prompt}]
     kwargs = {
     kwargs = {
         "model": deep_seek_official_model.get(model, "deepseek-chat"),
         "model": deep_seek_official_model.get(model, "deepseek-chat"),