Embeddings - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
(embeddings)
Overview
Text embedding endpoints
Available Operations
- generate - Submit an embedding request
- listModels - List all embeddings models
generate
Submits an embedding request to the embeddings router
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.CreateEmbeddingsResponse>
Errors
listModels
Returns a list of all available embeddings models and their properties
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<models.ModelsListResponse>