chat
The chat
module provides classes for creating and managing chat sessions that leverage OpenAI's language models to generate conversational responses.
The module supports both synchronous and asynchronous operations, offering interfaces for direct interaction with the completion endpoints tailored for chat applications. Designed for developers looking to integrate AI-powered chat functionalities into their applications and features like raw and streaming response handling for more flexible integration.
Classes:
Name | Description |
---|---|
AsyncChat |
|
AsyncChatWithRawResponse |
|
AsyncChatWithStreamingResponse |
|
Chat |
|
ChatWithRawResponse |
|
ChatWithStreamingResponse |
|
AsyncChat
AsyncChat(client: AsyncOpenAI)
AsyncChatWithRawResponse
AsyncChatWithRawResponse(chat: AsyncChat)
AsyncChatWithStreamingResponse
AsyncChatWithStreamingResponse(chat: AsyncChat)
Chat
Chat(client: OpenAI)
ChatWithRawResponse
ChatWithRawResponse(chat: Chat)
ChatWithStreamingResponse
ChatWithStreamingResponse(chat: Chat)