Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Cosmetic documentation fix. Update
llm_chain.ipynb
. (langchai…
…n-ai#27394) ATM [LLM chain docs](https://python.langchain.com/docs/tutorials/llm_chain/#server) say: ``` # 3. Create parser parser = StrOutputParser() # 4. Create chain chain = prompt_template | model | parser # 4. App definition app = FastAPI( title="LangChain Server", version="1.0", description="A simple API server using LangChain's Runnable interfaces", ) # 5. Adding chain route add_routes( app, chain, path="/chain", ) ``` I corrected it to: ``` # 3. Create parser parser = StrOutputParser() # 4. Create chain chain = prompt_template | model | parser # 5. App definition app = FastAPI( title="LangChain Server", version="1.0", description="A simple API server using LangChain's Runnable interfaces", ) # 6. Adding chain route add_routes( app, chain, path="/chain", ) ```
- Loading branch information