mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 05:27:59 +08:00
feat: release 2.0.7 version
This commit is contained in:
@@ -1 +1 @@
|
|||||||
2.0.6
|
2.0.7
|
||||||
|
|||||||
@@ -1095,7 +1095,9 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
args = json.loads(sys.argv[1])
|
raw = sys.argv[1]
|
||||||
|
raw = raw.replace('\u201c', '"').replace('\u201d', '"').replace('\u2018', "'").replace('\u2019', "'")
|
||||||
|
args = json.loads(raw)
|
||||||
except json.JSONDecodeError as e:
|
except json.JSONDecodeError as e:
|
||||||
print(json.dumps({"error": f"Invalid JSON: {e}"}))
|
print(json.dumps({"error": f"Invalid JSON: {e}"}))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user