-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from fuergaosi233/feat/upgrade-chatgpt-api
💥 Update chatgpt api and update config file
- Loading branch information
Showing
13 changed files
with
393 additions
and
514 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
CHAT_GPT_EMAIL= | ||
CHAT_GPT_PASSWORD= | ||
CHAT_GPT_SESSION_TOKEN= | ||
CHAT_GPT_RETRY_TIMES= | ||
CHAT_PRIVATE_TRIGGER_KEYWORD= | ||
OPENAI_PROXY= | ||
CF_CLEARANCE= | ||
USER_AGENT= | ||
NOPECHA_KEY= | ||
CAPTCHA_TOKEN= |
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,15 @@ | ||
FROM python:3 | ||
FROM node:19 AS app | ||
|
||
# We don't need the standalone Chromium | ||
RUN apt-get install -y wget \ | ||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | ||
&& apt-get update && apt-get -y install google-chrome-stable chromium xvfb\ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& echo "Chrome: " && google-chrome --version | ||
WORKDIR /app | ||
ARG POETRY_VERSION=1.2.2 | ||
RUN apt-get update && \ | ||
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ | ||
apt-get install -y nodejs && \ | ||
rm -rf /var/cache/apk/* && \ | ||
pip3 install --no-cache-dir poetry && \ | ||
rm -rf ~/.cache/ | ||
COPY package*.json ./ | ||
COPY pyproject.toml ./ | ||
COPY poetry.lock ./ | ||
# Install dependencies | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
RUN poetry install && npm install && rm -rf ~/.npm/ | ||
COPY package*.json . | ||
RUN npm install | ||
COPY . . | ||
CMD ["npm", "run", "dev"] | ||
ENV WECHATY_PUPPET_WECHAT_ENDPOINT=/usr/bin/google-chrome | ||
CMD xvfb-run --server-args="-screen 0 1024x768x24" npm run dev |
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,8 +1,5 @@ | ||
chatGPTAccountPool: | ||
- email: email | ||
password: password | ||
session_token: session_token | ||
chatPrivateTiggerKeyword: "" | ||
openAIProxy: "" | ||
clearanceToken: "" | ||
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" | ||
openAIProxy: "" |
Oops, something went wrong.