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#
:py:class:`~xinference.client.restful.restful_client.RESTfulChatModelHandle`의 별칭 |
|
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#
:py:class:`~xinference.client.restful.restful_client.RESTfulEmbeddingModelHandle`의 별칭 |
|
|
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#
:py:class:`~xinference.client.restful.restful_client.RESTfulGenerateModelHandle`의 별칭 |
|
|
Creates a completion for the provided prompt and parameters via RESTful APIs. |
ImageModelHandle#
:py:class:`~xinference.client.restful.restful_client.RESTfulImageModelHandle`의 별칭 |
|
|
Creates an image by the input text. |
AudioModelHandle#
:py:class:`~xinference.client.restful.restful_client.RESTfulAudioModelHandle`의 별칭 |
|
|
Transcribes audio into the input language. |
|
Translates audio into English. |
Generates audio from the input text. |
FlexibleModelHandle#
VideoModelHandle#
:py:class:`~xinference.client.restful.restful_client.RESTfulVideoModelHandle`의 별칭 |
|
|
Creates a video by the input text. |