-
Notifications
You must be signed in to change notification settings - Fork 44.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,245 additions
and
217 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,15 +1,17 @@ | ||
PINECONE_API_KEY=your-pinecone-api-key | ||
PINECONE_ENV=your-pinecone-region | ||
OPENAI_API_KEY=your-openai-api-key | ||
TEMPERATURE=1 | ||
ELEVENLABS_API_KEY=your-elevenlabs-api-key | ||
ELEVENLABS_VOICE_1_ID=your-voice-id | ||
ELEVENLABS_VOICE_2_ID=your-voice-id | ||
SMART_LLM_MODEL=gpt-4 | ||
FAST_LLM_MODEL=gpt-3.5-turbo | ||
GOOGLE_API_KEY= | ||
CUSTOM_SEARCH_ENGINE_ID= | ||
USE_AZURE=False | ||
OPENAI_AZURE_API_BASE=your-base-url-for-azure | ||
OPENAI_AZURE_API_VERSION=api-version-for-azure | ||
OPENAI_AZURE_DEPLOYMENT_ID=deployment-id-for-azure | ||
EXECUTE_LOCAL_COMMANDS=False | ||
IMAGE_PROVIDER=dalle | ||
HUGGINGFACE_API_TOKEN= | ||
USE_MAC_OS_TTS=False | ||
MEMORY_BACKEND=local |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Lint with flake8 | ||
continue-on-error: false | ||
run: flake8 scripts/ tests/ --select E303,W293,W291,W292,E305 | ||
|
||
- name: Run unittest tests with coverage | ||
run: | | ||
coverage run --source=scripts -m unittest discover tests | ||
- name: Generate coverage report | ||
run: | | ||
coverage report | ||
coverage xml |
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,9 +1,7 @@ | ||
FROM python:3.11 | ||
|
||
FROM python:3.11-slim | ||
ENV PIP_NO_CACHE_DIR=yes | ||
WORKDIR /app | ||
COPY scripts/ /app | ||
COPY requirements.txt /app | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
CMD ["python", "main.py"] | ||
COPY scripts/ . | ||
ENTRYPOINT ["python", "main.py"] |
Oops, something went wrong.