API 指南#
Client#
|
|
Get model information via RESTful APIs. |
|
|
Launch the model based on the parameters on the server via RESTful APIs. |
Get the model with the model type and model name registered on the server. |
|
Get progress of the specific model. |
|
Cancel launching model. |
|
|
Launch the model based on the parameters on the server via RESTful APIs. |
List models registered on the server. |
|
Retrieve the model specifications from the Server. |
|
Get a list of cached models. |
|
Get the cached models with the model path cached on the server. |
|
Remove the cached models with the model name cached on the server. |
|
Get the engine parameters with the model name registered on the server. |
|
Register a custom model. |
|
Terminate the specific model running on the server. |
|
Abort a request. |
|
|
|
|
|
Unregister a custom model. |
Model Handles#
ChatModelHandle#
|
|
Given a list of messages comprising a conversation, the model will return a response via RESTful APIs. |
|
Creates a completion for the provided prompt and parameters via RESTful APIs. |
EmbeddingModelHandle#
|
|
|
Create an Embedding from user input via RESTful APIs. |
RerankModelHandle#
|
|
|
Returns an ordered list of documents ordered by their relevance to the provided query. |
GenerateModelHandle#
|
|
|
Creates a completion for the provided prompt and parameters via RESTful APIs. |
ImageModelHandle#
|
|
|
Creates an image by the input text. |
AudioModelHandle#
|
|
|
Transcribes audio into the input language. |
|
Translates audio into English. |
Generates audio from the input text. |
FlexibleModelHandle#
VideoModelHandle#
|
|
|
Creates a video by the input text. |