claude-proxy / patch_fixes.py
dheraingoud's picture
Deploy latest upstream with key rotation, vision adapter, and HF configs
61bb677
Raw
History Blame Contribute Delete
637 Bytes
# Fix client.py
with open('src/free_claude_code/providers/nvidia_nim/client.py', 'r', encoding='utf-8') as f:
code = f.read()
code = code.replace('self._rotator.get_client()', 'self._rotator.next_client()')
with open('src/free_claude_code/providers/nvidia_nim/client.py', 'w', encoding='utf-8') as f:
f.write(code)
# Fix failures.py
with open('src/free_claude_code/core/failures.py', 'r', encoding='utf-8') as f:
code = f.read()
code = code.replace('super().__setattr__(name, value)', 'object.__setattr__(self, name, value)')
with open('src/free_claude_code/core/failures.py', 'w', encoding='utf-8') as f:
f.write(code)