パブリック クラス LlmInference
LlmInference Task Java API
ネストされたクラス
| クラス | LlmInference.LlmInferenceOptions | LlmInference の設定オプション。 |
|
パブリック メソッド
| void |
close()
LlmInference を閉じてクリーンアップします。 |
| 静的 LlmInference | |
| 文字列 | |
| void | |
| 整数 |
継承されるメソッド
パブリック メソッド
public static LlmInference createFromOptions (コンテキスト コンテキスト、LlmInference.LlmInferenceOptions オプション)
LlmInference タスクを作成します。
パラメータ
| コンテキスト | |
|---|---|
| オプション |
public void generateResponseAsync (String inputText)
public int sizeInTokens (String テキスト)
LLM のトークン化のみの呼び出しを実行し、結果のサイズ(トークン単位)を返します。generateResponse(String) クエリがアクティブな間は呼び出すことができません。generateResponse
パラメータ
| 指定しています | トークン化するテキスト。 |
|---|
戻り値
- テキストのトークン化に使用されるトークンの数。
例外
| 記録されます。 |