Completions#

class langchain_community.adapters.openai.Completions[source]#

Completions.

Methods

async static acreate(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[False] = False, **kwargs: Any) ChatCompletions[source]#
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) ChatCompletions[source]#
static create(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[True], **kwargs: Any) Iterable