Basic interaction with LLMs in Jupyter Notebooks
This folder contains Jupyter Notebook examples for interacting with OpenAI, Anthropic, Google Gemini, and local Ollama models.
Examples
openai-gpt-basic.ipynb: Basic interaction with OpenAI GPT models.openai-gpt-streaming.ipynb: Streaming responses from OpenAI GPT models.anthropic-claude-basic.ipynb: Basic interaction with Anthropic Claude models.anthropic-claude-streaming.ipynb: Streaming responses from Anthropic Claude models.google-gemini-basic.ipynb: Basic interaction with Google Gemini models.google-gemini-streaming.ipynb: Streaming responses from Google Gemini models.ollama-local-basic.ipynb: Basic interaction with a local LLM using Ollama.ollama-local-streaming.ipynb: Streaming responses from a local LLM using Ollama.
How to use
You can open these notebooks using JupyterLab, Visual Studio Code, or Google Colab.
Each notebook contains instructions for setting up the environment and running the code.