Skip to content

Commit 836a352

Browse files
usnavy13claude
andcommitted
fix: Add original_filename param to batch upload test mock
The fake_store function in TestLibreChatUploadBatch had a fixed parameter list missing the new original_filename kwarg, causing a TypeError when the endpoint passed it through. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e85e9e8 commit 836a352

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/integration/test_librechat_compat.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,13 @@ def setup_mocks(self):
19011901
stored_filenames = []
19021902

19031903
async def fake_store(
1904-
session_id, filename, content, content_type, is_agent_file, is_read_only=False
1904+
session_id,
1905+
filename,
1906+
content,
1907+
content_type,
1908+
is_agent_file,
1909+
is_read_only=False,
1910+
original_filename=None,
19051911
):
19061912
stored_filenames.append(filename)
19071913
return f"fid-{len(stored_filenames)}"

0 commit comments

Comments
 (0)