mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 22:56:05 +00:00
Merge, update structured output guide
This commit is contained in:
@@ -7,8 +7,8 @@ DOCS_DIR = Path(os.path.abspath(__file__)).parents[1]
|
||||
|
||||
|
||||
def update_links(doc_path, docs_link):
|
||||
for path in (DOCS_DIR / doc_path).glob('**/*'):
|
||||
if path.is_file() and path.suffix in ['.md', '.mdx', '.ipynb']:
|
||||
for path in (DOCS_DIR / doc_path).glob("**/*"):
|
||||
if path.is_file() and path.suffix in [".md", ".mdx", ".ipynb"]:
|
||||
with open(path, "r") as f:
|
||||
content = f.read()
|
||||
|
||||
@@ -20,4 +20,4 @@ def update_links(doc_path, docs_link):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
update_links(sys.argv[1], sys.argv[2])
|
||||
update_links(sys.argv[1], sys.argv[2])
|
||||
|
||||
Reference in New Issue
Block a user