PromptLayerOpenAIChat()Holds any model parameters valid for create call not explicitly specified.
| Name | Type | Description |
|---|---|---|
``pl_tags``* | unknown | List of strings to tag the request with. |
``return_pl_id``* | unknown | If True, the PromptLayer request ID will be
returned in the |
PromptLayer OpenAI large language models.
To use, you should have the openai and promptlayer python
package installed, and the environment variable OPENAI_API_KEY
and PROMPTLAYER_API_KEY set with your openAI API key and
promptlayer key respectively.
All parameters that can be passed to the OpenAIChat LLM can also be passed here. The PromptLayerOpenAIChat adds two optional
Example:
.. code-block:: python
from langchain_community.llms import PromptLayerOpenAIChat openaichat = PromptLayerOpenAIChat(model_name="gpt-3.5-turbo")