ReMe/quick-start-demo.py
2024-08-26 19:44:37 +08:00

13 lines
No EOL
427 B
Python

import os
if os.environ.get('DASHSCOPE_API_KEY', None) is None \
and os.environ.get('API_KEY', None) is None:
os.environ['DASHSCOPE_API_KEY'] = \
input(
'\n\n'
'Missing api key from dashscope ( `https://help.aliyun.com/zh/model-studio/developer-reference/get-api-key` ), '
'please provide DASHSCOPE_API_KEY and press Enter:'
)
from memoryscope import cli
cli()