mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-29 21:30:18 +00:00
Apply patch [skip ci]
This commit is contained in:
13
libs/partners/openai/fix_trailing.py
Normal file
13
libs/partners/openai/fix_trailing.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Script to fix trailing whitespace in batch.py."""
|
||||
|
||||
with open('langchain_openai/chat_models/batch.py', 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
# Remove all trailing whitespace and ensure single newline at end
|
||||
content = content.rstrip() + '\n'
|
||||
|
||||
with open('langchain_openai/chat_models/batch.py', 'w') as f:
|
||||
f.write(content)
|
||||
|
||||
print("Fixed trailing whitespace in batch.py")
|
||||
Reference in New Issue
Block a user