跳转到主内容

Azure 存储

如果你想使用 Azure Blob 存储作为 GPT Researcher 报告内容的来源,请按照以下步骤操作

第 1 步 - 在根文件夹中通过 .env 文件设置这些环境变量

AZURE_CONNECTION_STRING=
AZURE_CONTAINER_NAME=

第 2 步 - 将 azure-storage-blob 依赖项添加到你的 requirements.txt 文件中

azure-storage-blob

第 3 步 - 运行 GPTResearcher 类时,将 report_source 参数传递为 azure

report = GPTResearcher(
query="What happened in the latest burning man floods?",
report_type="research_report",
report_source="azure",
)