Toggle Menu
Prev Up Next

# `langchain_community.adapters.openai`.ChatCompletion

class langchain_community.adapters.openai.ChatCompletion

  Chat completion.

  Methods

  `__init__`() |
  `acreate`() |
  `create`() |

  __init__()
  async static acreate(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[False] = False, **kwargs: Any) → dict
  async static acreate(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[True], **kwargs: Any) → AsyncIterator
  static create(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[False] = False, **kwargs: Any) → dict
  static create(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[True], **kwargs: Any) → Iterable