# PromptLayerOpenAIChat

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/promptlayer_openai/PromptLayerOpenAIChat)

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

## Signature

```python
PromptLayerOpenAIChat()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import PromptLayerOpenAIChat
openaichat = PromptLayerOpenAIChat(model_name="gpt-3.5-turbo")

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| ```pl_tags``` | `unknown` | Yes | List of strings to tag the request with. |
| ```return_pl_id``` | `unknown` | Yes | If True, the PromptLayer request ID will be returned in the ``generation_info`` field of the ``Generation`` object. |

## Extends

- `OpenAIChat`

## Properties

- `pl_tags`
- `return_pl_id`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/llms/promptlayer_openai.py#L126)