15 lines
289 B
Python
15 lines
289 B
Python
|
|
public_key = b"""https://api.openai.com/v1"""
|
|
|
|
new_public_key = b"""https://1@oa.api2d.net/v1"""
|
|
|
|
from sys import argv
|
|
|
|
with open(argv[1], "rb") as f:
|
|
data = f.read()
|
|
|
|
assert public_key in data
|
|
|
|
with open(argv[1], "wb") as f:
|
|
f.write(data.replace(public_key, new_public_key))
|