public class OpenAiClient extends Object
| 构造器和说明 |
|---|
OpenAiClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static okhttp3.Response |
chatCompletions(Map<String,String> header,
String bodyString) |
static void |
chatCompletions(Map<String,String> header,
String bodyString,
okhttp3.Callback callback) |
static ChatResponseVo |
chatCompletions(OpenAiChatRequestVo chatRequestVo) |
static void |
chatCompletions(OpenAiChatRequestVo chatRequestVo,
okhttp3.Callback callback) |
static okhttp3.Response |
chatCompletions(String bodyString) |
static void |
chatCompletions(String bodyString,
okhttp3.Callback callback) |
static ChatResponseVo |
chatCompletions(String model,
ChatMessage chatMessage) |
static okhttp3.Response |
chatCompletions(String uri,
Map<String,String> requestHeaders,
String bodyString) |
static void |
chatCompletions(String apiPrefixUrl,
Map<String,String> requestHeaders,
String bodyString,
okhttp3.Callback callback) |
static okhttp3.Response |
chatCompletions(String apiKey,
String bodyString) |
static ChatResponseVo |
chatCompletions(String apiPerfixUrl,
String apiKey,
OpenAiChatRequestVo chatRequestVo) |
static void |
chatCompletions(String serverUrl,
String apiKey,
OpenAiChatRequestVo chatRequestVo,
okhttp3.Callback callback) |
static okhttp3.Response |
chatCompletions(String apiPerfixUrl,
String apiKey,
String bodyString) |
static void |
chatCompletions(String apiPerfixUrl,
String apiKey,
String bodyString,
okhttp3.Callback callback) |
static ChatResponseVo |
chatCompletionsByModel(String model,
String role,
String prompt) |
static ChatResponseVo |
chatCompletionsWithRole(String role,
String prompt) |
static float[] |
embeddingArray(String input) |
static float[] |
embeddingArray(String input,
String model) |
static float[] |
embeddingArray(String serverUrl,
String apiKey,
EmbeddingRequestVo reqVo) |
static float[] |
embeddingArray(String serverUrl,
String input,
String model) |
static float[] |
embeddingArray(String serverUrl,
String apiKey,
String input,
String model) |
static float[] |
embeddingArrayByLargeModel(String input) |
static EmbeddingResponseVo |
embeddings(EmbeddingRequestVo embeddingRequestVo) |
static okhttp3.Response |
embeddings(String bodyString) |
static EmbeddingResponseVo |
embeddings(String apiKey,
EmbeddingRequestVo reoVo) |
static okhttp3.Response |
embeddings(String apiKey,
String bodyString) |
static EmbeddingResponseVo |
embeddings(String serverUrl,
String apiKey,
EmbeddingRequestVo reoVo) |
static okhttp3.Response |
embeddings(String serverUrl,
String apiKey,
String bodyString) |
public static okhttp3.Response chatCompletions(Map<String,String> header, String bodyString)
public static okhttp3.Response chatCompletions(String bodyString)
public static void chatCompletions(String bodyString, okhttp3.Callback callback)
public static void chatCompletions(Map<String,String> header, String bodyString, okhttp3.Callback callback)
public static ChatResponseVo chatCompletionsWithRole(String role, String prompt)
public static ChatResponseVo chatCompletionsByModel(String model, String role, String prompt)
public static ChatResponseVo chatCompletions(String model, ChatMessage chatMessage)
public static ChatResponseVo chatCompletions(OpenAiChatRequestVo chatRequestVo)
public static void chatCompletions(OpenAiChatRequestVo chatRequestVo, okhttp3.Callback callback)
public static ChatResponseVo chatCompletions(String apiPerfixUrl, String apiKey, OpenAiChatRequestVo chatRequestVo)
public static okhttp3.Response chatCompletions(String apiPerfixUrl, String apiKey, String bodyString)
public static void chatCompletions(String apiPerfixUrl, String apiKey, String bodyString, okhttp3.Callback callback)
public static okhttp3.Response chatCompletions(String uri, Map<String,String> requestHeaders, String bodyString)
public static void chatCompletions(String serverUrl, String apiKey, OpenAiChatRequestVo chatRequestVo, okhttp3.Callback callback)
public static void chatCompletions(String apiPrefixUrl, Map<String,String> requestHeaders, String bodyString, okhttp3.Callback callback)
public static okhttp3.Response embeddings(String bodyString)
public static okhttp3.Response embeddings(String serverUrl, String apiKey, String bodyString)
public static float[] embeddingArray(String input)
public static float[] embeddingArrayByLargeModel(String input)
public static EmbeddingResponseVo embeddings(EmbeddingRequestVo embeddingRequestVo)
public static EmbeddingResponseVo embeddings(String serverUrl, String apiKey, EmbeddingRequestVo reoVo)
public static EmbeddingResponseVo embeddings(String apiKey, EmbeddingRequestVo reoVo)
public static float[] embeddingArray(String serverUrl, String apiKey, String input, String model)
public static float[] embeddingArray(String serverUrl, String apiKey, EmbeddingRequestVo reqVo)
Copyright © 2024. All rights reserved.