third #10

Open
Kayin wants to merge 2 commits from Kayin/mindspore:master into master
2 changed files with 18 additions and 14 deletions

View File

@ -1,11 +1,14 @@
{
"feeds": [
{
"url": "http://www.geekpark.net/rss",
"num_entries": "all",
"update_frequency": 3600
}
]
}
"feeds": [
{
"url": "https://example.com",
"num_entries": "all",
"update_frequency": 3600
},
{
"url": "https://example.com",
"num_entries": "5",
"update_frequency": 3600
}
]
}

View File

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