ReMe/quick-start-demo.py
jinli.yl 09f854c3b7 * update readme and other description
* add info before cli readme
2024-09-09 10:31:29 +08:00

11 lines
No EOL
345 B
Python

import os
if os.environ.get('DASHSCOPE_API_KEY', None) is None \
and os.environ.get('OPENAI_API_KEY', None) is None:
raise RuntimeError(f"""
Missing api key(dashscope api key or openai api key.
`https://help.aliyun.com/zh/model-studio/developer-reference/get-api-key` or
`https://openai.com/`""")
from memoryscope import cli
cli()