diff --git a/matrix_gpt/generate_clients/copilot.py b/matrix_gpt/generate_clients/copilot.py index 3901771..a8da0f9 100644 --- a/matrix_gpt/generate_clients/copilot.py +++ b/matrix_gpt/generate_clients/copilot.py @@ -8,6 +8,10 @@ from sydney import SydneyClient from matrix_gpt.generate_clients.api_client import ApiClient from matrix_gpt.generate_clients.command_info import CommandInfo +""" +This was written with sydney.py==0.20.4 but requirements.txt has not locked in a version because Bing's API may change. +""" + _REGEX_ATTR_RE_STR = r'^\[(\d*)]:\s(https?://(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9()@:%_+.~#?&/=]*)\s*(\"\")*' _REGEX_ATTR_RE = re.compile(_REGEX_ATTR_RE_STR) _REGEX_ATTR_LINK_RE_STR = [r'\[\^\d*\^]\[', r']'] diff --git a/requirements.txt b/requirements.txt index 4bb22f6..c1a0d5f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ markdown==3.6 openai==1.16.2 anthropic==0.23.1 pillow==10.3.0 +sydney.py git+https://git.evulid.cc/cyberes/bison.git