From 0eab733c3b65eee5d8e53903d192d356065191a6 Mon Sep 17 00:00:00 2001 From: aytona Date: Fri, 18 Oct 2024 09:09:59 -0400 Subject: [PATCH 1/3] explicit utf-8 encoding --- python/quip.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python/quip.py b/python/quip.py index b39eafe..2d112fb 100644 --- a/python/quip.py +++ b/python/quip.py @@ -808,7 +808,17 @@ def _fetch_json(self, path, post_data=None, **args): raise QuipError(error.code, message, error) def _clean(self, **args): - return dict((k, str(v) if isinstance(v, int) else v.encode("utf-8")) + def encode_value(v): + if isinstance(v, int): + return str(v) + elif isinstance(v, list): + return [encode_value(item) for item in v] + elif isinstance(v, str): + return v.encode("utf-8") + else: + return str(v).encode("utf-8") + + return dict((k, encode_value(v)) for k, v in args.items() if v or isinstance(v, int)) def _url(self, path, **args): From c5160e86ee44fa2f569b186e3cb5d06f540a5190 Mon Sep 17 00:00:00 2001 From: Tripti Agarwal Date: Tue, 1 Apr 2025 11:22:31 +0530 Subject: [PATCH 2/3] enable-checkpoint --- slack.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 slack.json diff --git a/slack.json b/slack.json new file mode 100644 index 0000000..53e2783 --- /dev/null +++ b/slack.json @@ -0,0 +1,8 @@ +{ + "checkpoint": { + "checkpoint_ready_check": false, + "notifications": { + "dm": false + } + } + } \ No newline at end of file From fd305d702fc64d5cf659237016c79a7ea08f31b1 Mon Sep 17 00:00:00 2001 From: aytona Date: Fri, 18 Oct 2024 09:09:59 -0400 Subject: [PATCH 3/3] explicit utf-8 encoding --- python/quip.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python/quip.py b/python/quip.py index b39eafe..2d112fb 100644 --- a/python/quip.py +++ b/python/quip.py @@ -808,7 +808,17 @@ def _fetch_json(self, path, post_data=None, **args): raise QuipError(error.code, message, error) def _clean(self, **args): - return dict((k, str(v) if isinstance(v, int) else v.encode("utf-8")) + def encode_value(v): + if isinstance(v, int): + return str(v) + elif isinstance(v, list): + return [encode_value(item) for item in v] + elif isinstance(v, str): + return v.encode("utf-8") + else: + return str(v).encode("utf-8") + + return dict((k, encode_value(v)) for k, v in args.items() if v or isinstance(v, int)) def _url(self, path, **args):