Skip to content

Commit

Permalink
optimize test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
robinyeeh committed Nov 9, 2023
1 parent 3ebd586 commit f56f5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, token: str, expired_time: int):
class AccessTokenClient:
def __init__(self, access_key_id: str,
access_key_secret: str,
agent_key: str,
agent_key: str = None,
endpoint: str = None):
if endpoint is None or endpoint == "":
endpoint = broadscope_bailian.pop_endpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __repr__(self):
class BaseCompletions:
""" 调用百联进行文本生成 """

def __init__(self, token, endpoint=None):
def __init__(self, token=None, endpoint=None):
self.token = token
self.endpoint = endpoint

Expand Down

0 comments on commit f56f5e0

Please sign in to comment.