langchain_community.adapters.openai.ChatCompletion

class langchain_community.adapters.openai.ChatCompletion[source]

聊天完成。

方法

__init__()

acreate()

create()

__init__()
async 静态 acreate(messages: Sequence[Dict[str, Any]]], *, provider: str = 'ChatOpenAI', stream: Literal[False], **kwargs: Any) dict[源代码]
async 静态 acreate(messages: Sequence[Dict[str, Any]], *, provider: str = 'ChatOpenAI', stream: Literal[True], **kwargs: Any) AsyncIterator
静态 create(messages: Sequence[Dict[str, Any]], ..., provider: str = 'ChatOpenAI', stream: Literal[False], **kwargs: Any) dict[source]
静态 create(messages: Sequence[Dict[str, Any]], ..., provider: str = 'ChatOpenAI', stream: Literal[True], **kwargs: Any) Iterable