{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import os\n", "from langchain.llms import PromptLayerOpenAI\n", "import promptlayer" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "\" to be a dog\\n\\nThat's not very likely to happen, but if you really want to be like a dog, you could try to learn some of their behaviors. You can play fetch, go for walks, and learn basic commands. You can also try getting some of the same toys that dogs have.\"" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "llm = PromptLayerOpenAI(pl_tags=[\"langchain\"])\n", "llm(\"I am a cat and I want\")" ] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.10" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }