mirror of https://github.com/hwchase17/langchain
community: Fixed bug of "system message check" in chat_models/tongyi. (#15631)
- **Description:** This PR is to fix a bug of "system message check" in langchain_community/ chat_models/tongyi.py - **Issue:** In term of current logic, if there's no system message in the chat messages, an error of "System message can only be the first message." will be wrongly raised. - **Dependencies:** No. - **Twitter handle:** I don't have a Twitter account.pull/15544/head^2
parent
08be477c24
commit
5d05df4bce
Loading…
Reference in New Issue