Skip to content
Closed
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
8 changes: 5 additions & 3 deletions src/main/java/com/google/genai/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// x
package com.google.genai;

import static com.google.common.base.Preconditions.checkNotNull;
Expand Down Expand Up @@ -227,7 +227,8 @@ private Client(

if (enterprise.isPresent() && vertexAI.isPresent() && !enterprise.get().equals(vertexAI.get())) {
throw new IllegalArgumentException(
"enterprise and vertexAI flags have conflicting values, please set enterprise value only.");
"enterprise and vertexAI flags have conflicting values, please set enterprise value"
+ " only.");
}

boolean useVertexAI;
Expand All @@ -245,7 +246,8 @@ private Client(

if (enterpriseEnvPresent && vertexEnvPresent && !enterpriseEnv.equalsIgnoreCase(vertexEnv)) {
logger.warning(
"Warning: Both GOOGLE_GENAI_USE_ENTERPRISE and GOOGLE_GENAI_USE_VERTEXAI are set with conflicting values. The value of GOOGLE_GENAI_USE_ENTERPRISE will be used.");
"Warning: Both GOOGLE_GENAI_USE_ENTERPRISE and GOOGLE_GENAI_USE_VERTEXAI are set with"
+ " conflicting values. The value of GOOGLE_GENAI_USE_ENTERPRISE will be used.");
}

if (enterpriseEnvPresent) {
Expand Down
Loading