This project demonstrates simple usage of the dspy library with different language models for a wide range of uses.
- Python 3.13+
- dspy >= 3.0.3
- python-dotenv (for loading API keys from
.env)
You will also need API keys for:
- Google AI Studio (for Gemini models)
- OpenRouter (for Longcat model)
- Be sure to find the README.md for each individual script's requirements and for more information.
-
Install dependencies:
pip install -r requirements.txt
or
pip install dspy>=3.0.3 python-dotenv -
Create a
.envfile in the project directory with your API keys:google_ai_studio_key=YOUR_GOOGLE_AI_STUDIO_KEY open_router_key=YOUR_OPENROUTER_KEY -
Run the script:
python conversational_ai/conversational_ai.py