Skip to content

Commit eea49da

Browse files
authored
Merge branch 'main' into Ch5-advanced-prompts
2 parents 931174f + 7edfe28 commit eea49da

File tree

120 files changed

+9003
-20999
lines changed

Some content is hidden

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

120 files changed

+9003
-20999
lines changed

.devcontainer/Dockerfile

-21
This file was deleted.

.devcontainer/devcontainer.json

+21-48
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,23 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.203.0/containers/python-3
1+
// Adopting the default Github codespaces-jupyter template as starter
2+
// https://github.com/github/codespaces-jupyter
33
{
4-
"name": "Python 3",
5-
"runArgs": ["--init"],
6-
"build": {
7-
"dockerfile": "Dockerfile",
8-
"context": "..",
9-
"args": {
10-
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
11-
// Append -bullseye or -buster to pin to an OS version.
12-
// Use -bullseye variants on local on arm64/Apple Silicon.
13-
"VARIANT": "3",
14-
// Options
15-
"NODE_VERSION": "none"
16-
}
17-
},
18-
19-
// Set *default* container specific settings.json values on container create.
20-
"settings": {
21-
"python.pythonPath": "/usr/local/bin/python",
22-
"python.languageServer": "Pylance",
23-
"python.linting.enabled": true,
24-
"python.linting.pylintEnabled": true,
25-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
26-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
27-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
28-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
29-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
30-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
31-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
32-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
33-
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
4+
"name": "Generative AI For Beginners",
5+
"image": "mcr.microsoft.com/devcontainers/universal:2",
6+
"hostRequirements": {
7+
"cpus": 4
348
},
35-
36-
// Add the IDs of extensions you want installed when the container is created.
37-
"extensions": [
38-
"ms-python.python",
39-
"ms-python.vscode-pylance"
40-
],
41-
42-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
43-
// "forwardPorts": [],
44-
45-
// Use 'postCreateCommand' to run commands after the container is created.
46-
// "postCreateCommand": "pip3 install --user -r requirements.txt",
47-
48-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
49-
"remoteUser": "vscode"
50-
}
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+
}
22+
}
23+
}

.devcontainer/icon.svg

+90
Loading

.devcontainer/post-create.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +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

.env.copy

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OPENAI_API_KEY=

.vscode/ltex.dictionary.en-US.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LLMs

1-getting-started/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## Topics
44

55
1. [Introduction to Generative AI](./lessons/1-introduction-to-generative-ai/README.md)
6+
2. [Exploring and Comparing different LLMs](./lessons/2-exploring-and-comparing-different-llms/README.md)
67

78
## Credits
89

9-
All lessons were written with ❤️ by ChatGPT.
10+
All lessons were written with ❤️ by ChatGPT.

0 commit comments

Comments
 (0)