# Basic interaction with LLMs in JavaScript

This folder contains JavaScript examples for interacting with OpenAI, Anthropic, Google Gemini, and local Ollama models.

## Requirements

- [Node.js](https://nodejs.org/)
- Corresponding API keys are set as environment variables (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and `GOOGLE_API_KEY`) for cloud examples
- [Ollama](https://ollama.com/) installed locally for the local model example

## Examples

- `openai-gpt-basic/`: Basic interaction with OpenAI GPT models.
- `anthropic-claude-basic/`: Basic interaction with Anthropic Claude models.
- `google-gemini-basic/`: Basic interaction with Google Gemini models.
- `ollama-local-basic/`: Basic interaction with a local LLM using Ollama.

## Running the examples

Each example is in its own folder and contains a `README.md` with instructions on how to run it.
