We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
botbuidler support for  regex== 2022 and above
Description:

I'm currently working on building a chatbot using Azure Bot Builder SDK in conjunction with OpenAI. In my project, I'm relying on the OpenAIEmbedding class from the langchain package, which utilizes Tiktoken. However, I've run into an issue due to dependency conflicts with Tiktoken. Specifically, Tiktoken requires regex version 2022 or higher, while the Bot Builder package supports only up to regex version 2019.

Feature Request:

I kindly request adding support for Tiktoken's regex version 2022 or higher in the OpenAIEmbedding class within the langchain package. This update would resolve the dependency conflicts and enable smoother integration of OpenAI into projects using Azure Bot Builder SDK.

Additional Information:

Current Behavior: Currently, the OpenAIEmbedding class in langchain relies on Tiktoken, which necessitates a regex version that is not compatible with the Bot Builder SDK's regex version support.

Desired Behavior: The botbuilder  classes should be updated to support Tiktoken's dependency on regex version 2022 or higher t

Impact of the Feature:

This feature would benefit developers working on chatbot projects that use Azure Bot Builder SDK and OpenAI. It would eliminate dependency conflicts, allowing for a seamless integration experience.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `libraries/botbuilder-dialogs/setup.py`
Content:
```
1 # Copyright (c) Microsoft Corporation. All rights reserved.
2 # Licensed under the MIT License.
3 
4 import os
5 from setuptools import setup
6 
7 REQUIRES = [
8     "regex<=2019.08.19",
9     "emoji==1.7.0",
10     "recognizers-text-date-time>=1.0.2a1",
11     "recognizers-text-number-with-unit>=1.0.2a1",
12     "recognizers-text-number>=1.0.2a1",
13     "recognizers-text>=1.0.2a1",
14     "recognizers-text-choice>=1.0.2a1",
15     "babel==2.9.1",
16     "botbuilder-schema==4.15.0",
17     "botframework-connector==4.15.0",
18     "botbuilder-core==4.15.0",
19 ]
20 
21 TEST_REQUIRES = ["aiounittest==1.3.0"]
22 
23 root = os.path.abspath(os.path.dirname(__file__))
24 
25 with open(os.path.join(root, "botbuilder", "dialogs", "about.py")) as f:
26     package_info = {}
27     info = f.read()
28     exec(info, package_info)
29 
30 with open(os.path.join(root, "README.rst"), encoding="utf-8") as f:
31     long_description = f.read()
32 
33 setup(
34     name=package_info["__title__"],
35     version=package_info["__version__"],
36     url=package_info["__uri__"],
37     author=package_info["__author__"],
38     description=package_info["__description__"],
39     keywords=["BotBuilderDialogs", "bots", "ai", "botframework", "botbuilder"],
40     long_description=long_description,
41     long_description_content_type="text/x-rst",
42     license=package_info["__license__"],
43     packages=[
44         "botbuilder.dialogs",
45         "botbuilder.dialogs.prompts",
46         "botbuilder.dialogs.choices",
47         "botbuilder.dialogs.skills",
48         "botbuilder.dialogs.memory",
49         "botbuilder.dialogs.memory.path_resolvers",
50         "botbuilder.dialogs.memory.scopes",
51     ],
52     install_requires=REQUIRES + TEST_REQUIRES,
53     tests_require=TEST_REQUIRES,
54     include_package_data=True,
55     classifiers=[
56         "Programming Language :: Python :: 3.7",
57         "Intended Audience :: Developers",
58         "License :: OSI Approved :: MIT License",
59         "Operating System :: OS Independent",
60         "Development Status :: 5 - Production/Stable",
61         "Topic :: Scientific/Engineering :: Artificial Intelligence",
62     ],
63 )
64
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/libraries/botbuilder-dialogs/setup.py b/libraries/botbuilder-dialogs/setup.py
--- a/libraries/botbuilder-dialogs/setup.py
+++ b/libraries/botbuilder-dialogs/setup.py
@@ -5,7 +5,7 @@
 from setuptools import setup
 
 REQUIRES = [
-    "regex<=2019.08.19",
+    "regex>=2022.1.18",
     "emoji==1.7.0",
     "recognizers-text-date-time>=1.0.2a1",
     "recognizers-text-number-with-unit>=1.0.2a1",

{"golden_diff": "diff --git a/libraries/botbuilder-dialogs/setup.py b/libraries/botbuilder-dialogs/setup.py\n--- a/libraries/botbuilder-dialogs/setup.py\n+++ b/libraries/botbuilder-dialogs/setup.py\n@@ -5,7 +5,7 @@\n from setuptools import setup\n \n REQUIRES = [\n-    \"regex<=2019.08.19\",\n+    \"regex>=2022.1.18\",\n     \"emoji==1.7.0\",\n     \"recognizers-text-date-time>=1.0.2a1\",\n     \"recognizers-text-number-with-unit>=1.0.2a1\",\n", "issue": "botbuidler support for  regex== 2022 and above\nDescription:\r\n\r\nI'm currently working on building a chatbot using Azure Bot Builder SDK in conjunction with OpenAI. In my project, I'm relying on the OpenAIEmbedding class from the langchain package, which utilizes Tiktoken. However, I've run into an issue due to dependency conflicts with Tiktoken. Specifically, Tiktoken requires regex version 2022 or higher, while the Bot Builder package supports only up to regex version 2019.\r\n\r\nFeature Request:\r\n\r\nI kindly request adding support for Tiktoken's regex version 2022 or higher in the OpenAIEmbedding class within the langchain package. This update would resolve the dependency conflicts and enable smoother integration of OpenAI into projects using Azure Bot Builder SDK.\r\n\r\nAdditional Information:\r\n\r\nCurrent Behavior: Currently, the OpenAIEmbedding class in langchain relies on Tiktoken, which necessitates a regex version that is not compatible with the Bot Builder SDK's regex version support.\r\n\r\nDesired Behavior: The botbuilder  classes should be updated to support Tiktoken's dependency on regex version 2022 or higher t\r\n\r\nImpact of the Feature:\r\n\r\nThis feature would benefit developers working on chatbot projects that use Azure Bot Builder SDK and OpenAI. It would eliminate dependency conflicts, allowing for a seamless integration experience.\n", "before_files": [{"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n    \"regex<=2019.08.19\",\n    \"emoji==1.7.0\",\n    \"recognizers-text-date-time>=1.0.2a1\",\n    \"recognizers-text-number-with-unit>=1.0.2a1\",\n    \"recognizers-text-number>=1.0.2a1\",\n    \"recognizers-text>=1.0.2a1\",\n    \"recognizers-text-choice>=1.0.2a1\",\n    \"babel==2.9.1\",\n    \"botbuilder-schema==4.15.0\",\n    \"botframework-connector==4.15.0\",\n    \"botbuilder-core==4.15.0\",\n]\n\nTEST_REQUIRES = [\"aiounittest==1.3.0\"]\n\nroot = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(root, \"botbuilder\", \"dialogs\", \"about.py\")) as f:\n    package_info = {}\n    info = f.read()\n    exec(info, package_info)\n\nwith open(os.path.join(root, \"README.rst\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nsetup(\n    name=package_info[\"__title__\"],\n    version=package_info[\"__version__\"],\n    url=package_info[\"__uri__\"],\n    author=package_info[\"__author__\"],\n    description=package_info[\"__description__\"],\n    keywords=[\"BotBuilderDialogs\", \"bots\", \"ai\", \"botframework\", \"botbuilder\"],\n    long_description=long_description,\n    long_description_content_type=\"text/x-rst\",\n    license=package_info[\"__license__\"],\n    packages=[\n        \"botbuilder.dialogs\",\n        \"botbuilder.dialogs.prompts\",\n        \"botbuilder.dialogs.choices\",\n        \"botbuilder.dialogs.skills\",\n        \"botbuilder.dialogs.memory\",\n        \"botbuilder.dialogs.memory.path_resolvers\",\n        \"botbuilder.dialogs.memory.scopes\",\n    ],\n    install_requires=REQUIRES + TEST_REQUIRES,\n    tests_require=TEST_REQUIRES,\n    include_package_data=True,\n    classifiers=[\n        \"Programming Language :: Python :: 3.7\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: OS Independent\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n    ],\n)\n", "path": "libraries/botbuilder-dialogs/setup.py"}], "after_files": [{"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n    \"regex>=2022.1.18\",\n    \"emoji==1.7.0\",\n    \"recognizers-text-date-time>=1.0.2a1\",\n    \"recognizers-text-number-with-unit>=1.0.2a1\",\n    \"recognizers-text-number>=1.0.2a1\",\n    \"recognizers-text>=1.0.2a1\",\n    \"recognizers-text-choice>=1.0.2a1\",\n    \"babel==2.9.1\",\n    \"botbuilder-schema==4.15.0\",\n    \"botframework-connector==4.15.0\",\n    \"botbuilder-core==4.15.0\",\n]\n\nTEST_REQUIRES = [\"aiounittest==1.3.0\"]\n\nroot = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(root, \"botbuilder\", \"dialogs\", \"about.py\")) as f:\n    package_info = {}\n    info = f.read()\n    exec(info, package_info)\n\nwith open(os.path.join(root, \"README.rst\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nsetup(\n    name=package_info[\"__title__\"],\n    version=package_info[\"__version__\"],\n    url=package_info[\"__uri__\"],\n    author=package_info[\"__author__\"],\n    description=package_info[\"__description__\"],\n    keywords=[\"BotBuilderDialogs\", \"bots\", \"ai\", \"botframework\", \"botbuilder\"],\n    long_description=long_description,\n    long_description_content_type=\"text/x-rst\",\n    license=package_info[\"__license__\"],\n    packages=[\n        \"botbuilder.dialogs\",\n        \"botbuilder.dialogs.prompts\",\n        \"botbuilder.dialogs.choices\",\n        \"botbuilder.dialogs.skills\",\n        \"botbuilder.dialogs.memory\",\n        \"botbuilder.dialogs.memory.path_resolvers\",\n        \"botbuilder.dialogs.memory.scopes\",\n    ],\n    install_requires=REQUIRES + TEST_REQUIRES,\n    tests_require=TEST_REQUIRES,\n    include_package_data=True,\n    classifiers=[\n        \"Programming Language :: Python :: 3.7\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: OS Independent\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n    ],\n)\n", "path": "libraries/botbuilder-dialogs/setup.py"}]}