This example demonstrates how to define and invoke a simple Pipeline that uses the OpenAI GPT-3 API to stream a joke from your server to the client.
- Create a
.env
file in the root directory of the project and add the following environment variable:
OPENAI_KEY=YOUR_API_KEY_HERE
- That's it!
Read more about the Aigur Client here.