public class TextEmbedding extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
TextEmbedding.Models |
| 构造器和说明 |
|---|
TextEmbedding() |
TextEmbedding(String baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
TextEmbeddingResult |
call(TextEmbeddingParam param)
Call the server to get the whole result, only http protocol
|
void |
call(TextEmbeddingParam param,
ResultCallback<TextEmbeddingResult> callback)
Call the server to get the result in the callback function.
|
public TextEmbedding()
public TextEmbedding(String baseUrl)
public void call(TextEmbeddingParam param, ResultCallback<TextEmbeddingResult> callback) throws ApiException, NoApiKeyException
param - The input param of class `GenerationParam`.callback - The callback to receive response, the template class is `GenerationResult`.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.public TextEmbeddingResult call(TextEmbeddingParam param) throws ApiException, NoApiKeyException
param - The input param of class `ConversationParam`.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.Copyright © 2024. All rights reserved.