-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/yuerbujin/ChatGPT-Telegram-Bot
- Loading branch information
Showing
10 changed files
with
234 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
paths: | ||
- Dockerfile.build | ||
- requirements.txt | ||
- setup.sh | ||
- .github/workflows/main.yml | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM python:3.10.13 | ||
WORKDIR /home | ||
FROM python:3.10.13 AS builder | ||
COPY ./requirements.txt /home | ||
RUN pip install -r /home/requirements.txt | ||
|
||
FROM python:3.10.13-slim-bullseye | ||
EXPOSE 8080 | ||
WORKDIR /home | ||
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages | ||
COPY ./setup.sh /home | ||
COPY ./requirements.txt /home | ||
RUN apt-get update && apt-get install -y git \ | ||
&& rm -rf /var/lib/apt/lists/* && pip install -r /home/requirements.txt | ||
RUN apt-get update && apt-get install -y --no-install-recommends git \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* | ||
ENTRYPOINT ["/home/setup.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--index-url https://pypi.python.org/simple/ | ||
tiktoken | ||
requests | ||
python-telegram-bot[webhook,rate-limiter]==20.4 | ||
python-telegram-bot[webhook,rate-limiter]==20.6 | ||
|
||
# langchain | ||
chromadb | ||
wikipedia | ||
fake_useragent | ||
openai==0.28.1 | ||
google-api-python-client | ||
unstructured[md] | ||
unstructured[pdf] | ||
duckduckgo-search==3.8.5 | ||
unstructured[md,pdf] | ||
duckduckgo-search==3.9.6 | ||
# duckduckgo-search==3.8.5 | ||
langchain==0.0.271 | ||
oauth2client==3.0.0 | ||
g4f==0.1.8.7 | ||
g4f==0.1.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
set -eu | ||
rm -rf ChatGPT-Telegram-Bot/ | ||
git clone --depth 1 -b main https://github.com/yym68686/ChatGPT-Telegram-Bot.git | ||
python -u /home/ChatGPT-Telegram-Bot/bot.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.