Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
milderhc committed May 31, 2024
1 parent d74e177 commit beb9a55
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 115 deletions.
2 changes: 1 addition & 1 deletion java/aiservices/google/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>1.1.5-SNAPSHOT</version>
<version>1.1.6-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.aiservices.google.chatcompletion;

import com.google.cloud.vertexai.api.FunctionCall;
Expand Down Expand Up @@ -35,13 +36,13 @@ public class GeminiChatMessageContent<T> extends ChatMessageContent<T> {
* @param geminiFunctionCalls The function calls.
*/
public GeminiChatMessageContent(
AuthorRole authorRole,
String content,
@Nullable String modelId,
@Nullable T innerContent,
@Nullable Charset encoding,
@Nullable FunctionResultMetadata metadata,
@Nullable List<GeminiFunctionCall> geminiFunctionCalls) {
AuthorRole authorRole,
String content,
@Nullable String modelId,
@Nullable T innerContent,
@Nullable Charset encoding,
@Nullable FunctionResultMetadata metadata,
@Nullable List<GeminiFunctionCall> geminiFunctionCalls) {
super(authorRole, content, modelId, innerContent, encoding, metadata);
if (geminiFunctionCalls == null) {
this.geminiFunctionCalls = Collections.emptyList();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.aiservices.google.chatcompletion;

import com.google.cloud.vertexai.api.FunctionCall;
Expand All @@ -18,8 +19,8 @@ public class GeminiFunctionCall {

@SuppressFBWarnings("EI_EXPOSE_REP2")
public GeminiFunctionCall(
@Nonnull FunctionCall functionCall,
@Nullable FunctionResult<?> functionResult) {
@Nonnull FunctionCall functionCall,
@Nullable FunctionResult<?> functionResult) {
this.functionCall = functionCall;
this.functionResult = functionResult;

Expand All @@ -31,6 +32,7 @@ public GeminiFunctionCall(
public String getPluginName() {
return pluginName;
}

public String getFunctionName() {
return functionName;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.aiservices.google.chatcompletion;

public enum GeminiRole {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.aiservices.google.implementation;

import com.google.api.core.ApiFuture;
Expand Down
2 changes: 1 addition & 1 deletion java/aiservices/huggingface/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>1.1.5-SNAPSHOT</version>
<version>1.1.6-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit beb9a55

Please sign in to comment.