Data Science, AI, Llm, OpenAI, Deep Dives.
phoneix library with which we will observe how DSPy works My code uses OpenRouter, which allow us to access OpenAI API in blocked regions. Please set up your OPENROUTER_API_KEY as environment variable, and execute the code under the “Preparation” block. Alternatively, you can use dspy.OpenAI class