Class ApiKey
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.utils.ApiKey
AgentStudio-owned API-key resolver.
Resolution order: explicit key, DASHSCOPE_API_KEY environment variable,
DASHSCOPE_API_KEY_FILE_PATH file, then the default ~/.dashscope/api_key file. Unlike the
former shared utility there is no mutable global fallback key.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApiKey
public ApiKey()
-
-
Method Details
-
getApiKey
- Throws:
NoApiKeyException
-