mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-12 20:57:52 +02:00
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:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user