From b4729b8ffe8fcd697541116bb16333ae73f0033b Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 01:14:57 +0530 Subject: [PATCH 1/7] Bard AI added natively. --- README.md | 2 +- examples/bardAi-bot/README.md | 38 +++++++++++++++++++++++++++++++++++ examples/bardAi-bot/main.py | 31 ++++++++++++++++++++++++++++ textbase/models.py | 24 +++++++++++++++++++++- 4 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 examples/bardAi-bot/README.md create mode 100644 examples/bardAi-bot/main.py diff --git a/README.md b/README.md index 92866b41..0ec3deed 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Coming soon: - [x] [PyPI package](https://pypi.org/project/textbase-client/) - [x] Easy web deployment via [textbase deploy](/docs/deployment/deploy-from-cli) - [ ] SMS integration -- [ ] Native integration of other models (Claude, Llama, ...) +- [X] Native integration of other models (Claude, Llama, ...), Bard AI added. ![Demo Deploy GIF](assets/textbase-deploy.gif) diff --git a/examples/bardAi-bot/README.md b/examples/bardAi-bot/README.md new file mode 100644 index 00000000..8260072a --- /dev/null +++ b/examples/bardAi-bot/README.md @@ -0,0 +1,38 @@ +# Bard AI Bot + +A bot using bardAi developed using a textbase framework. + +
+ +## Installation +--- +Make sure you have `python version >=3.9.0`, it's always good to follow the [docs](https://docs.textbase.ai/) 👈🏻 +### 1. Follow the installation steps in the [documentation of the textbase](https://docs.textbase.ai/get-started/installation)👈🏻 or alternatively just 1pip install -r requirements.txt` but make sure you get your virtual env running before installing from the file. + +### 2. Give the `main.py` of this bardAi while running the project. + +### 3. If you are using the `textbase-bot` repo for the front end make sure to replace the API URL as mentioned in the `textbase-bot`repository. + +
+ +## Usage +--- +Make sure you have Bard AI opened in the browser +### 1. BardAi doesn't provide API key publically i need to fetch it from developer tools of the cookie section of the browser. +### 9. There is __Secure-1PSID under Bard cookies. need to delete cookies and relogin if the backend is giving errors just like we are having. + + +Refer to this [video link](https://drive.google.com/file/d/1ZDqygsWxe2S_aA60u1ZrxIZhL09uGKjx/view?usp=sharing) for more ideas from configuring the API key to deploying the bot to textbase website I have recorded them all. + + +There are known corrections and future modifications to this project feel free to contribute if you want to. +- [X] Native integration of other models (BardAi) +- [ ] Need to display the responses as Google Brad displays with images and links on images as well. + +
+ +## Demo +--- +I'm sure this will not work because the API key must have expired when you are watching this repo but here is a link. +https://bot.textbase.ai/pspofficial29/bardai + diff --git a/examples/bardAi-bot/main.py b/examples/bardAi-bot/main.py new file mode 100644 index 00000000..cbcebcd5 --- /dev/null +++ b/examples/bardAi-bot/main.py @@ -0,0 +1,31 @@ +from textbase import bot, Message +from typing import List +from textbase.models import BardAI + +@bot() +def on_message(message_history: List[Message], state: dict = None): + + bot_response = BardAI.generate(message_history=message_history) + + response = { + "data": { + "messages": [ + { + "data_type": "STRING", + "value": bot_response + } + ], + "state": state + }, + "errors": [ + { + "message": "" + } + ] + } + + + return { + "status_code": 200, + "response": response + } \ No newline at end of file diff --git a/textbase/models.py b/textbase/models.py index 814ed533..ad6921aa 100644 --- a/textbase/models.py +++ b/textbase/models.py @@ -7,6 +7,8 @@ from textbase import Message +import os +from bardapi import Bard # Return list of values of content. def get_contents(message: Message, data_type: str): return [ @@ -143,4 +145,24 @@ def generate( data = json.loads(response.text) # parse the JSON data into a dictionary message = data['message'] - return message \ No newline at end of file + return message + + +class BardAI: + + # Search for __Secure-1PSID under the bard cookies make sure to copy the api key with the . at the end + api_key = "agjwOa_nWhV1Wij0ejWXM48R4jc06MdE0Y_c9w1S1M2d9j4wCxFAhI5dU9HZQWR_Czu0eA." + + @classmethod + def generate( + cls, + message_history: list[Message] + ): + assert cls.api_key is not None, "BardAI API key is not set." + os.environ["_BARD_API_KEY"] = cls.api_key + + most_recent_message = get_contents(message_history[-1], "STRING") + + response = Bard().get_answer(str(most_recent_message)) + + return response["content"] \ No newline at end of file From a7fe87338e60fd06b2027020309ba1cb85791f88 Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 01:18:04 +0530 Subject: [PATCH 2/7] api key changes --- requirements.txt | 109 +++++++++++++++++++++++++++++++++++++++++++++ textbase/models.py | 2 +- 2 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..58cec433 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,109 @@ +aiohttp==3.8.5 +aiosignal==1.3.1 +altair==5.1.1 +annotated-types==0.5.0 +anyio==4.0.0 +async-timeout==4.0.3 +attrs==23.1.0 +bardapi==0.1.33 +beautifulsoup4==4.12.2 +blinker==1.6.2 +browser-cookie3==0.19.1 +cachetools==5.3.1 +certifi==2023.7.22 +charset-normalizer==3.2.0 +click==8.1.7 +cloudevents==1.9.0 +colorama==0.4.6 +deep-translator==1.11.4 +deprecation==2.1.0 +EasyProcess==1.1 +entrypoint2==1.1 +Flask==2.3.3 +frozenlist==1.4.0 +functions-framework==3.4.0 +gitdb==4.0.10 +GitPython==3.1.34 +google-api-core==2.11.1 +google-auth==2.22.0 +google-cloud-core==2.3.3 +google-cloud-translate==3.12.0 +googleapis-common-protos==1.60.0 +grpcio==1.57.0 +grpcio-status==1.57.0 +h11==0.14.0 +h2==4.1.0 +hpack==4.0.0 +httpcore==0.17.3 +httpx==0.24.1 +hyperframe==6.0.1 +idna==3.4 +importlib-metadata==6.8.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +jsonschema==4.19.0 +jsonschema-specifications==2023.7.1 +langdetect==1.0.9 +lz4==4.3.2 +markdown-it-py==3.0.0 +MarkupSafe==2.1.3 +mdurl==0.1.2 +MouseInfo==0.1.3 +mss==9.0.1 +multidict==6.0.4 +numpy==1.25.2 +openai==0.27.10 +packaging==23.1 +pandas==2.1.0 +Pillow==9.5.0 +proto-plus==1.22.3 +protobuf==4.24.2 +pyarrow==13.0.0 +pyasn1==0.5.0 +pyasn1-modules==0.3.0 +PyAutoGUI==0.9.54 +pycryptodomex==3.18.0 +pydantic==2.3.0 +pydantic_core==2.6.3 +pydeck==0.8.0 +PyGetWindow==0.0.9 +Pygments==2.16.1 +Pympler==1.0.1 +PyMsgBox==1.0.9 +pyperclip==1.8.2 +PyRect==0.2.0 +pyscreenshot==3.1 +PyScreeze==0.1.29 +python-dateutil==2.8.2 +python-dotenv==1.0.0 +pytweening==1.0.7 +pytz==2023.3 +pytz-deprecation-shim==0.1.0.post0 +referencing==0.30.2 +requests==2.31.0 +rich==13.5.2 +rpds-py==0.10.0 +rsa==4.9 +six==1.16.0 +smmap==5.0.0 +sniffio==1.3.0 +soupsieve==2.5 +tabulate==0.9.0 +tenacity==8.2.3 +termcolor==2.3.0 +-e git+https://github.com/Psp29onetwo/textbase.git@f6d73d9898d849f66ceafe208e85c789a64fdea5#egg=textbase_client +toml==0.10.2 +toolz==0.12.0 +tornado==6.3.3 +tqdm==4.66.1 +typing_extensions==4.7.1 +tzdata==2023.3 +tzlocal==4.3.1 +urllib3==2.0.4 +validators==0.22.0 +watchdog==3.0.0 +Werkzeug==2.3.7 +wikipedia==1.4.0 +yarl==1.9.2 +yaspin==3.0.0 +zipp==3.16.2 diff --git a/textbase/models.py b/textbase/models.py index ad6921aa..f86bc9e5 100644 --- a/textbase/models.py +++ b/textbase/models.py @@ -151,7 +151,7 @@ def generate( class BardAI: # Search for __Secure-1PSID under the bard cookies make sure to copy the api key with the . at the end - api_key = "agjwOa_nWhV1Wij0ejWXM48R4jc06MdE0Y_c9w1S1M2d9j4wCxFAhI5dU9HZQWR_Czu0eA." + api_key = "BARD_AI_API_KEY" @classmethod def generate( From 58c77d34c9bd5d2436f6ebe59cb205b46aab01c7 Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 01:19:53 +0530 Subject: [PATCH 3/7] changes --- requirements.txt | 109 ----------------------------------------------- 1 file changed, 109 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 58cec433..00000000 --- a/requirements.txt +++ /dev/null @@ -1,109 +0,0 @@ -aiohttp==3.8.5 -aiosignal==1.3.1 -altair==5.1.1 -annotated-types==0.5.0 -anyio==4.0.0 -async-timeout==4.0.3 -attrs==23.1.0 -bardapi==0.1.33 -beautifulsoup4==4.12.2 -blinker==1.6.2 -browser-cookie3==0.19.1 -cachetools==5.3.1 -certifi==2023.7.22 -charset-normalizer==3.2.0 -click==8.1.7 -cloudevents==1.9.0 -colorama==0.4.6 -deep-translator==1.11.4 -deprecation==2.1.0 -EasyProcess==1.1 -entrypoint2==1.1 -Flask==2.3.3 -frozenlist==1.4.0 -functions-framework==3.4.0 -gitdb==4.0.10 -GitPython==3.1.34 -google-api-core==2.11.1 -google-auth==2.22.0 -google-cloud-core==2.3.3 -google-cloud-translate==3.12.0 -googleapis-common-protos==1.60.0 -grpcio==1.57.0 -grpcio-status==1.57.0 -h11==0.14.0 -h2==4.1.0 -hpack==4.0.0 -httpcore==0.17.3 -httpx==0.24.1 -hyperframe==6.0.1 -idna==3.4 -importlib-metadata==6.8.0 -itsdangerous==2.1.2 -Jinja2==3.1.2 -jsonschema==4.19.0 -jsonschema-specifications==2023.7.1 -langdetect==1.0.9 -lz4==4.3.2 -markdown-it-py==3.0.0 -MarkupSafe==2.1.3 -mdurl==0.1.2 -MouseInfo==0.1.3 -mss==9.0.1 -multidict==6.0.4 -numpy==1.25.2 -openai==0.27.10 -packaging==23.1 -pandas==2.1.0 -Pillow==9.5.0 -proto-plus==1.22.3 -protobuf==4.24.2 -pyarrow==13.0.0 -pyasn1==0.5.0 -pyasn1-modules==0.3.0 -PyAutoGUI==0.9.54 -pycryptodomex==3.18.0 -pydantic==2.3.0 -pydantic_core==2.6.3 -pydeck==0.8.0 -PyGetWindow==0.0.9 -Pygments==2.16.1 -Pympler==1.0.1 -PyMsgBox==1.0.9 -pyperclip==1.8.2 -PyRect==0.2.0 -pyscreenshot==3.1 -PyScreeze==0.1.29 -python-dateutil==2.8.2 -python-dotenv==1.0.0 -pytweening==1.0.7 -pytz==2023.3 -pytz-deprecation-shim==0.1.0.post0 -referencing==0.30.2 -requests==2.31.0 -rich==13.5.2 -rpds-py==0.10.0 -rsa==4.9 -six==1.16.0 -smmap==5.0.0 -sniffio==1.3.0 -soupsieve==2.5 -tabulate==0.9.0 -tenacity==8.2.3 -termcolor==2.3.0 --e git+https://github.com/Psp29onetwo/textbase.git@f6d73d9898d849f66ceafe208e85c789a64fdea5#egg=textbase_client -toml==0.10.2 -toolz==0.12.0 -tornado==6.3.3 -tqdm==4.66.1 -typing_extensions==4.7.1 -tzdata==2023.3 -tzlocal==4.3.1 -urllib3==2.0.4 -validators==0.22.0 -watchdog==3.0.0 -Werkzeug==2.3.7 -wikipedia==1.4.0 -yarl==1.9.2 -yaspin==3.0.0 -zipp==3.16.2 From 66071e395417e2bc09f10e7736c447f5b4a5e9de Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 01:44:26 +0530 Subject: [PATCH 4/7] readme updated. --- examples/bardAi-bot/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/bardAi-bot/README.md b/examples/bardAi-bot/README.md index 8260072a..17ce326f 100644 --- a/examples/bardAi-bot/README.md +++ b/examples/bardAi-bot/README.md @@ -36,3 +36,7 @@ There are known corrections and future modifications to this project feel free t I'm sure this will not work because the API key must have expired when you are watching this repo but here is a link. https://bot.textbase.ai/pspofficial29/bardai + +### Note +--- +I know that this api key regenerating is a tedioud task but what should we do? we can't control how third party works! Here is a hope https://www.googlecloudcommunity.com/gc/AI-ML/Google-Bard-API/m-p/538517. \ No newline at end of file From 2c1f17ec77a73f0b6b0efe38323ca59a52a773be Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 01:45:32 +0530 Subject: [PATCH 5/7] requirements changes --- requirements.txt | 108 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..eecb9c10 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,108 @@ +aiohttp==3.8.5 +aiosignal==1.3.1 +altair==5.1.1 +annotated-types==0.5.0 +anyio==4.0.0 +async-timeout==4.0.3 +attrs==23.1.0 +bardapi==0.1.33 +beautifulsoup4==4.12.2 +blinker==1.6.2 +browser-cookie3==0.19.1 +cachetools==5.3.1 +certifi==2023.7.22 +charset-normalizer==3.2.0 +click==8.1.7 +cloudevents==1.9.0 +colorama==0.4.6 +deep-translator==1.11.4 +deprecation==2.1.0 +EasyProcess==1.1 +entrypoint2==1.1 +Flask==2.3.3 +frozenlist==1.4.0 +functions-framework==3.4.0 +gitdb==4.0.10 +GitPython==3.1.34 +google-api-core==2.11.1 +google-auth==2.22.0 +google-cloud-core==2.3.3 +google-cloud-translate==3.12.0 +googleapis-common-protos==1.60.0 +grpcio==1.57.0 +grpcio-status==1.57.0 +h11==0.14.0 +h2==4.1.0 +hpack==4.0.0 +httpcore==0.17.3 +httpx==0.24.1 +hyperframe==6.0.1 +idna==3.4 +importlib-metadata==6.8.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +jsonschema==4.19.0 +jsonschema-specifications==2023.7.1 +langdetect==1.0.9 +lz4==4.3.2 +markdown-it-py==3.0.0 +MarkupSafe==2.1.3 +mdurl==0.1.2 +MouseInfo==0.1.3 +mss==9.0.1 +multidict==6.0.4 +numpy==1.25.2 +openai==0.27.10 +packaging==23.1 +pandas==2.1.0 +Pillow==9.5.0 +proto-plus==1.22.3 +protobuf==4.24.2 +pyarrow==13.0.0 +pyasn1==0.5.0 +pyasn1-modules==0.3.0 +PyAutoGUI==0.9.54 +pycryptodomex==3.18.0 +pydantic==2.3.0 +pydantic_core==2.6.3 +pydeck==0.8.0 +PyGetWindow==0.0.9 +Pygments==2.16.1 +Pympler==1.0.1 +PyMsgBox==1.0.9 +pyperclip==1.8.2 +PyRect==0.2.0 +pyscreenshot==3.1 +PyScreeze==0.1.29 +python-dateutil==2.8.2 +python-dotenv==1.0.0 +pytweening==1.0.7 +pytz==2023.3 +pytz-deprecation-shim==0.1.0.post0 +referencing==0.30.2 +requests==2.31.0 +rich==13.5.2 +rpds-py==0.10.0 +rsa==4.9 +six==1.16.0 +smmap==5.0.0 +sniffio==1.3.0 +soupsieve==2.5 +tabulate==0.9.0 +tenacity==8.2.3 +termcolor==2.3.0 +toml==0.10.2 +toolz==0.12.0 +tornado==6.3.3 +tqdm==4.66.1 +typing_extensions==4.7.1 +tzdata==2023.3 +tzlocal==4.3.1 +urllib3==1.26.16 +validators==0.22.0 +watchdog==3.0.0 +Werkzeug==2.3.7 +wikipedia==1.4.0 +yarl==1.9.2 +yaspin==3.0.0 +zipp==3.16.2 From 020ec5ef176ac13646744f06b513bf93c0091bf2 Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 10:25:41 +0530 Subject: [PATCH 6/7] requirements.txt changes and installation steps changes. --- examples/bardAi-bot/README.md | 7 ++- requirements.txt | 109 +--------------------------------- 2 files changed, 5 insertions(+), 111 deletions(-) diff --git a/examples/bardAi-bot/README.md b/examples/bardAi-bot/README.md index 17ce326f..749676f4 100644 --- a/examples/bardAi-bot/README.md +++ b/examples/bardAi-bot/README.md @@ -7,11 +7,12 @@ A bot using bardAi developed using a textbase framework. ## Installation --- Make sure you have `python version >=3.9.0`, it's always good to follow the [docs](https://docs.textbase.ai/) 👈🏻 -### 1. Follow the installation steps in the [documentation of the textbase](https://docs.textbase.ai/get-started/installation)👈🏻 or alternatively just 1pip install -r requirements.txt` but make sure you get your virtual env running before installing from the file. +### 1. Follow the installation steps in the [documentation of the textbase framework](https://docs.textbase.ai/get-started/installation)👈🏻 -### 2. Give the `main.py` of this bardAi while running the project. +### 2. After following the steps in the documentation and making sure that you are in the activated `virtualenv`, execute `pip install -r requirements.txt` in the activated virtual env to install Bard dependency. +### 2. Then [run server](https://docs.textbase.ai/get-started/test-locally#if-you-have-cloned-the-repo) with this command and Give the `main.py` presenet in `examples/bardAi` while running the project. -### 3. If you are using the `textbase-bot` repo for the front end make sure to replace the API URL as mentioned in the `textbase-bot`repository. +### 3. If you are using the `textbase-bot` repo for the front end make sure to replace the API URL as mentioned in the `textbase-bot` repository.
diff --git a/requirements.txt b/requirements.txt index eecb9c10..2ed0f665 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,108 +1 @@ -aiohttp==3.8.5 -aiosignal==1.3.1 -altair==5.1.1 -annotated-types==0.5.0 -anyio==4.0.0 -async-timeout==4.0.3 -attrs==23.1.0 -bardapi==0.1.33 -beautifulsoup4==4.12.2 -blinker==1.6.2 -browser-cookie3==0.19.1 -cachetools==5.3.1 -certifi==2023.7.22 -charset-normalizer==3.2.0 -click==8.1.7 -cloudevents==1.9.0 -colorama==0.4.6 -deep-translator==1.11.4 -deprecation==2.1.0 -EasyProcess==1.1 -entrypoint2==1.1 -Flask==2.3.3 -frozenlist==1.4.0 -functions-framework==3.4.0 -gitdb==4.0.10 -GitPython==3.1.34 -google-api-core==2.11.1 -google-auth==2.22.0 -google-cloud-core==2.3.3 -google-cloud-translate==3.12.0 -googleapis-common-protos==1.60.0 -grpcio==1.57.0 -grpcio-status==1.57.0 -h11==0.14.0 -h2==4.1.0 -hpack==4.0.0 -httpcore==0.17.3 -httpx==0.24.1 -hyperframe==6.0.1 -idna==3.4 -importlib-metadata==6.8.0 -itsdangerous==2.1.2 -Jinja2==3.1.2 -jsonschema==4.19.0 -jsonschema-specifications==2023.7.1 -langdetect==1.0.9 -lz4==4.3.2 -markdown-it-py==3.0.0 -MarkupSafe==2.1.3 -mdurl==0.1.2 -MouseInfo==0.1.3 -mss==9.0.1 -multidict==6.0.4 -numpy==1.25.2 -openai==0.27.10 -packaging==23.1 -pandas==2.1.0 -Pillow==9.5.0 -proto-plus==1.22.3 -protobuf==4.24.2 -pyarrow==13.0.0 -pyasn1==0.5.0 -pyasn1-modules==0.3.0 -PyAutoGUI==0.9.54 -pycryptodomex==3.18.0 -pydantic==2.3.0 -pydantic_core==2.6.3 -pydeck==0.8.0 -PyGetWindow==0.0.9 -Pygments==2.16.1 -Pympler==1.0.1 -PyMsgBox==1.0.9 -pyperclip==1.8.2 -PyRect==0.2.0 -pyscreenshot==3.1 -PyScreeze==0.1.29 -python-dateutil==2.8.2 -python-dotenv==1.0.0 -pytweening==1.0.7 -pytz==2023.3 -pytz-deprecation-shim==0.1.0.post0 -referencing==0.30.2 -requests==2.31.0 -rich==13.5.2 -rpds-py==0.10.0 -rsa==4.9 -six==1.16.0 -smmap==5.0.0 -sniffio==1.3.0 -soupsieve==2.5 -tabulate==0.9.0 -tenacity==8.2.3 -termcolor==2.3.0 -toml==0.10.2 -toolz==0.12.0 -tornado==6.3.3 -tqdm==4.66.1 -typing_extensions==4.7.1 -tzdata==2023.3 -tzlocal==4.3.1 -urllib3==1.26.16 -validators==0.22.0 -watchdog==3.0.0 -Werkzeug==2.3.7 -wikipedia==1.4.0 -yarl==1.9.2 -yaspin==3.0.0 -zipp==3.16.2 +bardapi>=0.1.33 \ No newline at end of file From 81c79b29c9af3752aac5181f1c6b667ee3cf322a Mon Sep 17 00:00:00 2001 From: #PSP Date: Mon, 4 Sep 2023 10:27:59 +0530 Subject: [PATCH 7/7] read me changes --- examples/bardAi-bot/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bardAi-bot/README.md b/examples/bardAi-bot/README.md index 749676f4..c5b9fe54 100644 --- a/examples/bardAi-bot/README.md +++ b/examples/bardAi-bot/README.md @@ -10,9 +10,9 @@ Make sure you have `python version >=3.9.0`, it's always good to follow the [doc ### 1. Follow the installation steps in the [documentation of the textbase framework](https://docs.textbase.ai/get-started/installation)👈🏻 ### 2. After following the steps in the documentation and making sure that you are in the activated `virtualenv`, execute `pip install -r requirements.txt` in the activated virtual env to install Bard dependency. -### 2. Then [run server](https://docs.textbase.ai/get-started/test-locally#if-you-have-cloned-the-repo) with this command and Give the `main.py` presenet in `examples/bardAi` while running the project. +### 3. Then [run server](https://docs.textbase.ai/get-started/test-locally#if-you-have-cloned-the-repo) with this command and Give the `main.py` presenet in `examples/bardAi` while running the project. -### 3. If you are using the `textbase-bot` repo for the front end make sure to replace the API URL as mentioned in the `textbase-bot` repository. +### 4. If you are using the `textbase-bot` repo for the front end make sure to replace the API URL as mentioned in the `textbase-bot` repository.