This repository contains projects exploring various concepts in AI Engineering.
A simple Node.js script demonstrating interaction with an AI model via the OpenRouter API.
Functionality:
- Connects to the OpenRouter API (using the
deepseek/deepseek-chat-v3-0324:free
model). - Asks the model the question: "What is vibe coding?".
- Streams the model's response directly to the console.
Setup:
- Navigate to the
introToAIEngineering
directory:cd introToAIEngineering
- Install dependencies:
# Using pnpm (based on lock file) pnpm install # Or using npm if you prefer # npm install
- Set the required API key as an environment variable. You can get a key from https://openrouter.ai/.
(Replace
export OPENROUTER_API_KEY="YOUR_API_KEY_HERE"
"YOUR_API_KEY_HERE"
with your actual key)
Running:
- Make sure you have
ts-node
installed (npm install -g ts-node
orpnpm add -g ts-node
) or compile the TypeScript first. - Execute the script:
# Using ts-node ts-node index.ts # Or compile and run # tsc index.ts # node index.js
A web-based translation tool using the OpenRouter API.
Functionality:
- Provides a user interface to enter text.
- Allows selection of a target language (French, Spanish, Japanese).
- Uses the OpenRouter API (
deepseek/deepseek-chat-v3-0324:free
model) to translate the text. - Displays the translation on the webpage.
Setup:
- Navigate to the
polyGlot
directory:cd polyGlot
- Install dependencies:
# Using pnpm (based on lock file) pnpm install # Or using npm if you prefer # npm install
- Create a
.env
file in thepolyGlot
directory. - Add your OpenRouter API key to the
.env
file:(ReplaceVITE_OPENROUTER_API_KEY="YOUR_API_KEY_HERE"
"YOUR_API_KEY_HERE"
with your actual key)
Running:
- Start the Vite development server:
# Using pnpm pnpm run dev # Or using npm (check package.json for the exact script name, likely 'dev' or 'start') # npm run dev
- Open your web browser to the local address provided by Vite (usually
http://localhost:5173
).