Skip to content

Commit

Permalink
encourage using StrOutputParser in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Jan 15, 2025
1 parent 21bcf55 commit eeccba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/developers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def create_llm_chain(
prompt_template = FIX_PROMPT_TEMPLATE
self.prompt_template = prompt_template

runnable = prompt_template | llm # type:ignore
runnable = prompt_template | llm | StrOutputParser() # type:ignore
self.llm_chain = runnable
```

Expand Down

0 comments on commit eeccba8

Please sign in to comment.