diff --git a/promptlayer/promptlayer.py b/promptlayer/promptlayer.py index caec470..291c2a3 100644 --- a/promptlayer/promptlayer.py +++ b/promptlayer/promptlayer.py @@ -18,10 +18,10 @@ def __getattr__(self, name): if ( name != "count_tokens" # fix for anthropic count_tokens and not re.match( - "", str(attr) + r"", str(attr) ) # fix for anthropic errors and not re.match( - "", str(attr) + r"", str(attr) ) # fix for openai errors and ( inspect.isclass(attr) @@ -33,8 +33,8 @@ def __getattr__(self, name): == "" or str(type(attr)) == "" or str(type(attr)) - == "" - or re.match("", str(type(attr))) + == r"" + or re.match(r"", str(type(attr))) ) ): return PromptLayerBase(