PromptLayer
is the first platform that allows you to track, manage, and share your GPT prompt engineering. PromptLayer
acts a middleware between your code and OpenAI’s
python library.
PromptLayer
records all your OpenAI API
requests, allowing you to search and explore request history in the PromptLayer
dashboard.
This example showcases how to connect to PromptLayer to start recording your OpenAI requests.
Another example is here.
promptlayer
package is required to use PromptLayer with OpenAI. Install promptlayer
using pip.
PROMPTLAYER_API_KEY
.
You also need an OpenAI Key, called OPENAI_API_KEY
.
pl_tags
to track your requests with PromptLayer’s tagging feature.
return_pl_id
when instantiating the PromptLayer LLM to get the request id.