Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/google/genai/AfcUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static boolean shouldDisableAfc(GenerateContentConfig config) {
if (maximumRemoteCalls.isPresent() && maximumRemoteCalls.get() <= 0) {
logger.warning(
String.format(
"maxRemoteCalls in AfautomaticFunctionCallingConfig %s is less than or equal to 0."
"maxRemoteCalls in AutomaticFunctionCallingConfig %s is less than or equal to 0."
+ " Disabling automatic function calling. Please set maximumRemoteCalls to a"
+ " positive integer.",
maximumRemoteCalls.get()));
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/google/genai/AsyncChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
* automaticContinuation(false)} in the {@link GenerateContentConfig} to turn this off.
*/
public class AsyncChat extends ChatBase {
private final ApiClient apiClient;
private final AsyncModels models;
private final String model;
private final GenerateContentConfig config;
Expand All @@ -55,7 +54,6 @@ public class AsyncChat extends ChatBase {
ApiClient apiClient, String model, GenerateContentConfig config, List<Content> history) {
super(new ArrayList<>(history), new ArrayList<>());
curatedHistory.addAll(extractCuratedHistory(history));
this.apiClient = apiClient;
this.models = new AsyncModels(apiClient);
this.model = model;
this.config = config;
Expand Down Expand Up @@ -98,7 +96,7 @@ public CompletableFuture<GenerateContentResponse> sendMessage(String text) {
*
* <p>This appends the message and the model's response to the chat history, which is sent back to
* the model in subsequent calls to sendMessage. Be sure to initialize a chat session using
* cilent.async.chats.create() before calling sendMessage.
* client.async.chats.create() before calling sendMessage.
*
* @param content a {@link com.google.genai.types.Content} to send to the generative model
* @param config a {@link com.google.genai.types.GenerateContentConfig} instance that specifies
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/google/genai/Chat.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
* <p>Note: this class is NOT thread-safe.
*/
public class Chat extends ChatBase {
private final ApiClient apiClient;
private final Models models;
private final String model;
private final GenerateContentConfig config;
Expand All @@ -50,7 +49,6 @@ public class Chat extends ChatBase {
Chat(ApiClient apiClient, String model, GenerateContentConfig config, List<Content> history) {
super(new ArrayList<>(history), new ArrayList<>());
curatedHistory.addAll(extractCuratedHistory(history));
this.apiClient = apiClient;
this.models = new Models(apiClient);
this.model = model;
this.config = config;
Expand Down
Loading