Initial commit: skills library
- 70 skills with code and documentation - Add .gitignore (ignore __pycache__, output/, temp/, venv/) - Clean up test intermediates and caches
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
初始化LLM Hub配置
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def create_env_example():
|
||||
content = """# LLM Hub 环境变量配置
|
||||
# 复制此文件为 .env 并填入实际API Key
|
||||
|
||||
# 阿里云百炼 (https://dashscope.console.aliyun.com/)
|
||||
DASHSCOPE_API_KEY=sk-your-key-here
|
||||
|
||||
# OpenRouter (https://openrouter.ai/)
|
||||
OPENROUTER_API_KEY=sk-your-key-here
|
||||
|
||||
# Groq (https://console.groq.com/)
|
||||
GROQ_API_KEY=gsk_your-key-here
|
||||
|
||||
# DeepSeek (https://platform.deepseek.com/)
|
||||
DEEPSEEK_API_KEY=sk-your-key-here
|
||||
|
||||
# 硅基流动 (https://siliconflow.cn/)
|
||||
SILICONFLOW_API_KEY=sk-your-key-here
|
||||
|
||||
# 阶跃星辰 (https://platform.stepfun.com/)
|
||||
STEPFUN_API_KEY=sk-your-key-here
|
||||
"""
|
||||
|
||||
env_file = os.path.join(os.path.dirname(__file__), "../.env.example")
|
||||
with open(env_file, "w", encoding="utf-8") as f:
|
||||
f.write(content)
|
||||
print(f"已变量示例文件创建环境: {env_file}")
|
||||
print("请复制为 .env 并填入实际的API Key")
|
||||
|
||||
|
||||
def main():
|
||||
print("=== LLM Hub 配置初始化 ===\n")
|
||||
|
||||
# 创建环境变量示例
|
||||
create_env_example()
|
||||
|
||||
print("\n=== 下一步 ===")
|
||||
print("1. 复制 .env.example 为 .env")
|
||||
print("2. 填入各平台的API Key")
|
||||
print("3. 运行 python scripts/check_quotas.py 查询额度")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user