public class GeminiClient extends Object
| 构造器和说明 |
|---|
GeminiClient(GeminiAccount geminiAccount) |
GeminiClient(GeminiAccount geminiAccount,
okhttp3.OkHttpClient okHttpClient) |
GeminiClient(String modelName,
GeminiAccount geminiAccount) |
GeminiClient(String modelName,
GeminiAccount geminiAccount,
okhttp3.OkHttpClient okHttpClient) |
public GeminiClient(GeminiAccount geminiAccount)
public GeminiClient(String modelName, GeminiAccount geminiAccount)
public GeminiClient(GeminiAccount geminiAccount, okhttp3.OkHttpClient okHttpClient)
public GeminiClient(String modelName, GeminiAccount geminiAccount, okhttp3.OkHttpClient okHttpClient)
public GeminiTextResponse chat(String message) throws IOException
IOExceptionpublic GeminiTextResponse chat(String message, GeminiGenerationConfig generationConfig) throws IOException
IOExceptionpublic GeminiTextResponse chat(String message, List<ChatHistory> history) throws IOException
IOExceptionpublic GeminiTextResponse chat(String message, GeminiGenerationConfig generationConfig, List<ChatHistory> history) throws IOException
IOExceptionpublic GeminiTextResponse chat(String message, MultiPartInlineData inlineData) throws IOException
IOExceptionpublic GeminiTextResponse chat(String message, MultiPartInlineData inlineData, GeminiGenerationConfig generationConfig, List<ChatHistory> history) throws IOException
IOExceptionpublic void stream(String message, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionpublic void stream(String message, GeminiGenerationConfig generationConfig, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionpublic void stream(String message, List<ChatHistory> history, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionpublic void stream(String message, GeminiGenerationConfig generationConfig, List<ChatHistory> history, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionpublic void stream(String message, MultiPartInlineData inlineData, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionpublic void stream(String message, MultiPartInlineData inlineData, GeminiGenerationConfig generationConfig, List<ChatHistory> history, GeminiStreamResponseListener responseListener) throws IOException
IOExceptionCopyright © 2024. All rights reserved.