docs: update file paths to make the examples more robust (#5382)

* cli: update file paths to make the examples more robust

* fix: fix the prompt path
This commit is contained in:
Michael Li
2025-07-08 18:58:04 +00:00
committed by GitHub
parent fb1c0ae9f9
commit 9cb6365914
2 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@ model_oai = ChatOpenAI(temperature=0)
model_anth = model_anth.bind_tools(tools)
model_oai = model_oai.bind_tools(tools)
prompt = open("prompt.txt").read()
prompt = open(Path(__file__).parent.parent / "prompt.txt").read()
subprompt = open(Path(__file__).parent / "subprompt.txt").read()
@@ -17,7 +17,7 @@ model_oai = ChatOpenAI(temperature=0)
model_anth = model_anth.bind_tools(tools)
model_oai = model_oai.bind_tools(tools)
prompt = open("prompt.txt").read()
prompt = open(Path(__file__).parent.parent / "prompt.txt").read()
subprompt = open(Path(__file__).parent / "subprompt.txt").read()