Skip to content

Commit 1787cd1

Browse files
authored
fix: add use_default_token for qianwen (#600)
1 parent 1ef8c01 commit 1787cd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kubechat/llm/qianwen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def __init__(self, **kwargs):
2121
if not self.api_key:
2222
raise LLMConfigError("Please specify the API KEY")
2323

24+
self.use_default_token = not kwargs.get("api_key", "")
25+
2426
@staticmethod
2527
def provide_default_token():
2628
return bool(os.environ.get("QIANWEN_API_KEY", ""))

0 commit comments

Comments
 (0)