Skip to content

Commit

Permalink
fix: πŸš‘οΈ remove app id and secret from code (run-llama#525)
Browse files Browse the repository at this point in the history
fix: πŸš‘οΈ remove app id and secret from code
  • Loading branch information
cestoliv authored Sep 20, 2023
1 parent 5f291e0 commit c9767b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llama_hub/feishu_docs/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Feishu docs reader."""
import json
import time
import os

import requests
from typing import List
Expand Down Expand Up @@ -103,9 +104,9 @@ def set_lark_domain(self):


if __name__ == "__main__":
app_id = "cli_a4d536f6a738d00b"
app_secret = "HL29tOCwRHw390Cr6jQBBdFjmYlTJt1e"
app_id = os.environ.get("FEISHU_APP_ID")
app_secret = os.environ.get("FEISHU_APP_SECRET")
reader = FeishuDocsReader(app_id, app_secret)
print(
reader.load_data(document_ids=['HIH2dHv21ox9kVxjRuwc1W0jnkf'])
reader.load_data(document_ids=[os.environ.get("FEISHU_DOC_ID")])
)

0 comments on commit c9767b1

Please sign in to comment.