wxywb / history_rag

789 stars 102 forks source link

修复pipeline 无法从GitHub批量构建索引的bug,增加qwen-max等模型名字匹配 #38

Closed BetterAndBetterII closed 5 months ago

BetterAndBetterII commented 5 months ago

源代码直接get请求会得到400错误而报错

# original
def get_github_repo_contents(repo_url):
    # GET https://raw.githubusercontent.com/wxywb/history_rag/master/data/history_24/  无法获得json数据
    response = requests.get(repo_url)

修改为直接使用api.github.com获取文件目录