Skip to content

Commit a72d419

Browse files
committed
250426
1 parent b88b09e commit a72d419

File tree

282 files changed

+64839
-64825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+64839
-64825
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
// Adopting the default GitHub codespaces-jupyter template as starter
2-
// https://github.com/github/codespaces-jupyter
3-
{
4-
"name": "Generative AI For Beginners",
5-
"image": "mcr.microsoft.com/devcontainers/universal:2.11.2",
6-
"hostRequirements": {
7-
"cpus": 4
8-
},
9-
"waitFor": "onCreateCommand",
10-
"updateContentCommand": "python3 -m pip install -r requirements.txt",
11-
"postCreateCommand": "bash .devcontainer/post-create.sh",
12-
"customizations": {
13-
"codespaces": {
14-
"openFiles": []
15-
},
16-
"vscode": {
17-
"extensions": [
18-
"ms-python.python",
19-
"ms-toolsai.jupyter"
20-
],
21-
"postCreateCommand": [
22-
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh",
23-
"pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt"
24-
]
25-
}
26-
}
27-
}
1+
// Adopting the default GitHub codespaces-jupyter template as starter
2+
// https://github.com/github/codespaces-jupyter
3+
{
4+
"name": "Generative AI For Beginners",
5+
"image": "mcr.microsoft.com/devcontainers/universal:2.11.2",
6+
"hostRequirements": {
7+
"cpus": 4
8+
},
9+
"waitFor": "onCreateCommand",
10+
"updateContentCommand": "python3 -m pip install -r requirements.txt",
11+
"postCreateCommand": "bash .devcontainer/post-create.sh",
12+
"customizations": {
13+
"codespaces": {
14+
"openFiles": []
15+
},
16+
"vscode": {
17+
"extensions": [
18+
"ms-python.python",
19+
"ms-toolsai.jupyter"
20+
],
21+
"postCreateCommand": [
22+
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh",
23+
"pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt"
24+
]
25+
}
26+
}
27+
}

.devcontainer/environment.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: dev
2-
channels:
3-
- defaults
4-
dependencies:
5-
- python=3.10.0
6-
- openai
7-
- python-dotenv
8-
- pip
9-
- pip:
10-
- azure-ai-inference
1+
name: dev
2+
channels:
3+
- defaults
4+
dependencies:
5+
- python=3.10.0
6+
- openai
7+
- python-dotenv
8+
- pip
9+
- pip:
10+
- azure-ai-inference

.devcontainer/icon.svg

Lines changed: 90 additions & 90 deletions
Loading

.devcontainer/post-create.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/bin/bash
2-
3-
# Install OpenAI and Dotenv for Python
4-
# TODO: Check why this can't be done in requirements.txt
5-
pip install python-dotenv
6-
pip install openai
7-
8-
# Install the OpenAI packages for Node.js
9-
# (Python related dependencies are covered in requirements.txt)
10-
# echo "Installing OpenAI For Node.js"
11-
# npm install --save openai
1+
#!/bin/bash
2+
3+
# Install OpenAI and Dotenv for Python
4+
# TODO: Check why this can't be done in requirements.txt
5+
pip install python-dotenv
6+
pip install openai
7+
8+
# Install the OpenAI packages for Node.js
9+
# (Python related dependencies are covered in requirements.txt)
10+
# echo "Installing OpenAI For Node.js"
11+
# npm install --save openai

.env.copy

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# OpenAI Provider
2-
OPENAI_API_KEY='<add your OpenAI API key here>'
3-
4-
## Azure OpenAI
5-
AZURE_OPENAI_API_VERSION='2024-02-01' # Default is set!
6-
AZURE_OPENAI_API_KEY='<add your AOAI key here>'
7-
AZURE_OPENAI_ENDPOINT='<add your AOIA service endpoint here>'
8-
AZURE_OPENAI_DEPLOYMENT='<add your chat completion model name here>'
9-
AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT='<add your embeddings model name here>'
10-
11-
## Hugging Face
1+
# OpenAI Provider
2+
OPENAI_API_KEY='<add your OpenAI API key here>'
3+
4+
## Azure OpenAI
5+
AZURE_OPENAI_API_VERSION='2024-02-01' # Default is set!
6+
AZURE_OPENAI_API_KEY='<add your AOAI key here>'
7+
AZURE_OPENAI_ENDPOINT='<add your AOIA service endpoint here>'
8+
AZURE_OPENAI_DEPLOYMENT='<add your chat completion model name here>'
9+
AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT='<add your embeddings model name here>'
10+
11+
## Hugging Face
1212
HUGGING_FACE_API_KEY='<add your HuggingFace API or token here>'
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
12-
13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
19-
20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
22-
23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
25-
26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
30-
31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
36-
37-
**Additional context**
38-
Add any other context about the problem here.
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12-
13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
15-
16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
18-
19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
version: 2
2-
updates:
3-
# For Python dependencies
4-
- package-ecosystem: "pip"
5-
directory: "/" # Location of the requirements.txt file
6-
schedule:
7-
interval: "weekly"
8-
9-
# For Node.js dependencies
10-
- package-ecosystem: "npm"
11-
directory: "/" # Location of the package.json file
12-
schedule:
13-
interval: "weekly"
14-
15-
# Optional: For GitHub Actions dependencies
16-
- package-ecosystem: "github-actions"
17-
directory: "/" # Location of the .github/workflows directory
18-
schedule:
1+
version: 2
2+
updates:
3+
# For Python dependencies
4+
- package-ecosystem: "pip"
5+
directory: "/" # Location of the requirements.txt file
6+
schedule:
7+
interval: "weekly"
8+
9+
# For Node.js dependencies
10+
- package-ecosystem: "npm"
11+
directory: "/" # Location of the package.json file
12+
schedule:
13+
interval: "weekly"
14+
15+
# Optional: For GitHub Actions dependencies
16+
- package-ecosystem: "github-actions"
17+
directory: "/" # Location of the .github/workflows directory
18+
schedule:
1919
interval: "weekly"

.github/workflows/lock.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: Lock closed issue
2-
3-
on:
4-
issues:
5-
types: [closed]
6-
7-
permissions:
8-
contents: read
9-
issues: write
10-
11-
jobs:
12-
lock:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: OSDKDev/[email protected]
16-
with:
17-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1+
name: Lock closed issue
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
11+
jobs:
12+
lock:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: OSDKDev/[email protected]
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/stale.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2-
#
3-
# You can adjust the behavior by modifying this file.
4-
# For more information, see:
5-
# https://github.com/actions/stale
6-
name: Mark stale issues and pull requests
7-
8-
on:
9-
schedule:
10-
- cron: '35 8 * * *'
11-
12-
permissions:
13-
issues: write
14-
pull-requests: write
15-
16-
jobs:
17-
stale:
18-
19-
runs-on: ubuntu-latest
20-
21-
steps:
22-
- uses: actions/stale@v9
23-
with:
24-
repo-token: ${{ secrets.GITHUB_TOKEN }}
25-
stale-issue-message: 'This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
26-
stale-pr-message: 'This PR has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
27-
stale-issue-label: 'no-issue-activity'
28-
stale-pr-label: 'no-pr-activity'
29-
days-before-stale: 30 # Added parameter to control inactivity period
30-
days-before-close: 7 # Optional: Time after marking stale before closing
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '35 8 * * *'
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
jobs:
17+
stale:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/stale@v9
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
stale-issue-message: 'This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
26+
stale-pr-message: 'This PR has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
27+
stale-issue-label: 'no-issue-activity'
28+
stale-pr-label: 'no-pr-activity'
29+
days-before-stale: 30 # Added parameter to control inactivity period
30+
days-before-close: 7 # Optional: Time after marking stale before closing

0 commit comments

Comments
 (0)