This is a public repository with a set of getting started guides that run completely in GitHub Codespaces. This repo calls public LLM's so if you run this on your computer in a corporate be aware that you will be sending data out to the public internet.
See the notebooks folder there's a folder per technology/subject.
- How to add an environmental secret
- Development environment before running code
- Run openai_1_hello_world.ipynb to test connectivity. Most calls are into Open AI so do this first to sort out connectivity and api key isses.
- Start exploring notebooks folders
- Keep an eye on Monitor costs
- Goto API Keys: https://platform.openai.com/settings/organization/api-keys
- Create new secret key
- Go to Settings: https://platform.openai.com/settings/organization/general
- Click SECOND "Limit" menu heading, there are two on the list in the RHS.
- On "Project limits" page...
- Under "Model usage" > "Allowed models" click Edit
- Select models you want to add/remove
NOTE: Running Codespaces has a cost implications that hits the user running the application. If your account is linked to a corporate account they will not necessarily pick up the cost. This cost is mininal and the Codespaces auto-turn themselves off. See GitHub Codespaces billing
- Browse to the code repo > settings > Secrets and variables > Codespaces: https://github.com/YOURREPOSITORYNAME/settings/secrets/codespaces
- Click: Add new repository key
- Create key, don't use quotes on value
- If you have the Codespace running you may need to restart it and wait a couple of minutes
- Browse to GitHub Codespaces
- Click "Use this template" under Jupyter Notbook
- A new space will spin up that is a fork of Visual Studio Code
- This runs in a container on GitHub Codespaces outside of corporate networks.
- Browse to a repo: https://github.com/gr-repo/ai-hello-world
- Click the green "Code" button
- Click "Codespaces" tab
- Choose your Codespace option (i.e., + to create a new one)
- This runs in a container on GitHub Codespaces outside of corporate networks.
- You can edit code in VS Code but the app runs in the cloud
- Browse to Codespaces
- Scroll down to existing Codespaces you have created
- Click the "..."
- Select "Open in Visual Studio Code"
- This runs in a container on GitHub Codespaces outside of corporate networks.
- Go to MySettings to see what settings are required. You can override these manually in the MySettings class or setup your environment. The default is to pull from GitHub Codespaces dev env.
- Run Editable Package Installation
- This makes files under "src" behave as packages so you can import them using
- Open Terminal
- Go to project rool /workspaces/ai-hell-world
- Run "pip install -e ."