mindspore/config.py

17 lines
646 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import json
# 加载和管理配置文件中的数据
class Config:
# 读取配置文件
with open('config.json', 'r') as f:
config_data = json.load(f)
# 获取 RSS feed 列表
RSS_FEEDS = config_data.get('feeds', [])
SQLALCHEMY_DATABASE_URI = 'sqlite:///rss.db'
OPENAI_API_KEY ='' # jinareader的key通过 https://jina.ai/ 获取
FETCH_INTERVAL = 3600 # 默认抓取间隔1小时
OPENAI_URL = 'https://api.deepseek.com/chat/completions' # 通过你的 LLM 服务商获取
OPENAI_MODEL = 'deepseek-chat' # 通过你的 LLM 服务商获取
JINA_API_KEY = '' # 通过你的 LLM 服务商获取