Lecture 15 - AI-Assisted Programming, APIs, and Agents (Continued)
Source: Cloud Now
Documentation: https://docs.roocode.com/
Keys
Credit Limit
, you can put a limit on how much you want to spendOpenRouter API Key
fielddocument
api.qmd
Create a new folder called document in my current folder. Create a new Quarto file called api.qmd. Write three paragraphs about the importance of APIs. Save the file. Render the file and open it in VSCode.
”Step 1: Clone the Repository
Step 2: Set Up Python Environment They recommend using uv. Here: https://docs.astral.sh/uv/getting-started/installation/
Activate the virtual environment:
Step 3: Install Dependencies Install Python packages:
Install Playwright:
Step 4: Configure Environment Create a copy of the example environment file:
.env
in your preferred text editor and add your API keys and other settings.env
file in the GOOGLE_API_KEY
field.env
file and running the server.env
fileGOOGLE_API_KEY
field and you are good to go!OPENAI_ENDPOINT=https://api.openai.com/v1
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GOOGLE_API_KEY=XXXXXXXX
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_KEY=
DEEPSEEK_ENDPOINT=https://api.deepseek.com
DEEPSEEK_API_KEY=
web-ui
folder:
python webui.py --ip 127.0.0.1 --port 7788
dotenv
, you can do it by running uv pip install python-dotenv
.venv/bin/python webui.py --ip 127.0.0.1 --port 7788
Task: go to google.com and find out who won the Oscar for best international film in 2025
Result: The Guardian article says 'I’m Still Here wins Oscar for best international film, becoming first Brazilian film to do so'