# BaseChatOpenAI

> **Class** in `langchain_openai`

📖 [View in docs](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI)

Base wrapper around OpenAI large language models for chat.

This base class targets
[official OpenAI API specifications](https://github.com/openai/openai-openapi)
only. Non-standard response fields added by third-party providers (e.g.,
`reasoning_content`) are not extracted. Use a provider-specific subclass for
full provider support.

## Signature

```python
BaseChatOpenAI()
```

## Extends

- `BaseChatModel`

## Properties

- `client`
- `async_client`
- `root_client`
- `root_async_client`
- `model_name`
- `temperature`
- `model_kwargs`
- `openai_api_key`
- `openai_api_base`
- `openai_organization`
- `openai_proxy`
- `request_timeout`
- `stream_usage`
- `max_retries`
- `presence_penalty`
- `frequency_penalty`
- `seed`
- `logprobs`
- `top_logprobs`
- `logit_bias`
- `streaming`
- `n`
- `top_p`
- `max_tokens`
- `reasoning_effort`
- `reasoning`
- `verbosity`
- `tiktoken_model_name`
- `default_headers`
- `default_query`
- `http_client`
- `http_async_client`
- `stop`
- `extra_body`
- `include_response_headers`
- `disabled_params`
- `context_management`
- `include`
- `service_tier`
- `store`
- `truncation`
- `use_previous_response_id`
- `use_responses_api`
- `output_version`
- `model_config`
- `model`

## Methods

- [`build_extra()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/build_extra)
- [`validate_temperature()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/validate_temperature)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/validate_environment)
- [`get_token_ids()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/get_token_ids)
- [`get_num_tokens_from_messages()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/get_num_tokens_from_messages)
- [`bind_tools()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/bind_tools)
- [`with_structured_output()`](https://reference.langchain.com/python/langchain-openai/chat_models/base/BaseChatOpenAI/with_structured_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/partners/openai/langchain_openai/chat_models/base.py#L569)