We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef8c01 commit 1787cd1Copy full SHA for 1787cd1
kubechat/llm/qianwen.py
@@ -21,6 +21,8 @@ def __init__(self, **kwargs):
21
if not self.api_key:
22
raise LLMConfigError("Please specify the API KEY")
23
24
+ self.use_default_token = not kwargs.get("api_key", "")
25
+
26
@staticmethod
27
def provide_default_token():
28
return bool(os.environ.get("QIANWEN_API_KEY", ""))
0 commit comments