[PR #2351] fix [baichuan] Error: argument of type 'NoneType' is not iterable #23587

Closed
opened 2026-02-21 20:21:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/2351

State: closed
Merged: Yes


When the Baichuan model API is called frequency_penalty parameters must be between 1 and 2, otherwise an error will be reported, and abnormal data will be returned, resulting in the error: [baichuan] Error: argument of type 'NoneType' is not iterable.

Fix #2348

**Original Pull Request:** https://github.com/langgenius/dify/pull/2351 **State:** closed **Merged:** Yes --- When the Baichuan model API is called frequency_penalty parameters must be between 1 and 2, otherwise an error will be reported, and abnormal data will be returned, resulting in the error: [baichuan] Error: argument of type 'NoneType' is not iterable. Fix #2348
yindo added the pull-request label 2026-02-21 20:21:22 -05:00
yindo closed this issue 2026-02-21 20:21:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23587