System prompt in Python
This folder contains Python examples for interacting with OpenAI, Anthropic, and Google Gemini models using system prompts.
Requirements
- Python 3.12+
- Corresponding API keys are set as environment variables (
OPENAI_API_KEY,ANTHROPIC_API_KEY, andGOOGLE_API_KEY)
Examples
openai-gpt-system-prompt/: System prompt with OpenAI GPT models.anthropic-claude-system-prompt/: System prompt with Anthropic Claude models.google-gemini-system-prompt/: System prompt with Google Gemini models.ollama-local-system-prompt/: System prompt with Ollama models.instruction-artifacts/: Examples of instruction artifacts (e.g.,AGENTS.md,CLAUDE.md) for a Python project.
Running the examples
Each example is in its own folder and contains a README.md with instructions on how to run it.