Chat - TypeScript SDK
Chat method reference
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
(chat)
Overview
Available Operations
- send - Create a chat completion
send
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<operations.SendChatCompletionRequestResponse>