From 2375a8d6d4ef55c6fe95cad894b8448a6a6d3cd7 Mon Sep 17 00:00:00 2001 From: DavdGao Date: Tue, 5 Nov 2024 16:21:15 +0800 Subject: [PATCH] Remove needless lines --- src/agentscope/models/dashscope_model.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/agentscope/models/dashscope_model.py b/src/agentscope/models/dashscope_model.py index b83b8b805..6192a5d31 100644 --- a/src/agentscope/models/dashscope_model.py +++ b/src/agentscope/models/dashscope_model.py @@ -68,8 +68,6 @@ def __init__( self.generate_args = generate_args or {} self.api_key = api_key - if self.api_key: - dashscope.api_key = self.api_key self.max_length = None def format(