From b5184d72741ffff82240c1502460df5422540ded Mon Sep 17 00:00:00 2001 From: Ryder Wishart Date: Wed, 23 Aug 2023 10:10:57 -0700 Subject: [PATCH] Make api_like_OAI.py work with Microsoft Guidance Check for None in addition to empty string check in all request params --- examples/server/api_like_OAI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/server/api_like_OAI.py b/examples/server/api_like_OAI.py index ed19237b0..79af1768b 100755 --- a/examples/server/api_like_OAI.py +++ b/examples/server/api_like_OAI.py @@ -27,6 +27,8 @@ def is_present(json, key): buf = json[key] except KeyError: return False + if json[key] == None: + return False return True