diff --git a/docs/content/migration/0.30.1-to-0.40.0.md b/docs/content/migration/0.30.1-to-0.40.0.md index 22fb09d3..6ae0d10a 100644 --- a/docs/content/migration/0.30.1-to-0.40.0.md +++ b/docs/content/migration/0.30.1-to-0.40.0.md @@ -3,12 +3,18 @@ id: 0.30.1-to-0.40.0 title: 0.30.1 → 0.40.0 --- -This release renames the Model Gateway chat types, moves `EmptyChatResponseException` into a dedicated package, introduces `ModerationException` for responses blocked by the moderation system, makes every collection the SDK exposes unmodifiable, and adds `DeveloperMessage`, `PartialResponseInterceptor`, and streaming support for `MessageInterceptor`. +This release renames the Model Gateway chat types, moves `EmptyChatResponseException` into a dedicated package, introduces `ModerationException` for responses blocked by the moderation system, makes every collection the SDK exposes unmodifiable, adds `DeveloperMessage`, `PartialResponseInterceptor`, and streaming support for `MessageInterceptor`, and ships GraalVM native image reachability metadata for both modules. --- ## What's new +### GraalVM native image support + +Both `watsonx-ai-core` and `watsonx-ai` ship GraalVM reachability metadata under `META-INF/native-image/`. No extra configuration is required: add the SDK to a native-image project and the reflection, proxy, and resource entries are picked up automatically. + +--- + ### `DeveloperMessage` `DeveloperMessage` is a new `ChatMessage` subtype that carries the OpenAI `developer` role. Newer models use it in place of `SystemMessage` to set the assistant's behavior. It is accepted only by the Model Gateway chat APIs (`ModelGatewayChatService` and `ModelGatewayTextChatRequest`). diff --git a/modules/watsonx-ai/src/main/java/com/ibm/watsonx/ai/chat/model/ChatParameters.java b/modules/watsonx-ai/src/main/java/com/ibm/watsonx/ai/chat/model/ChatParameters.java index cde89248..3f3d8f17 100644 --- a/modules/watsonx-ai/src/main/java/com/ibm/watsonx/ai/chat/model/ChatParameters.java +++ b/modules/watsonx-ai/src/main/java/com/ibm/watsonx/ai/chat/model/ChatParameters.java @@ -179,18 +179,6 @@ public Builder toBuilder() { return builder; } - @Override - public String toString() { - return "ChatParameters [modelId=" + modelId + ", transactionId=" + transactionId + ", projectId=" + projectId + ", spaceId=" + spaceId - + ", crypto=" + crypto + ", toolChoiceOption=" + toolChoiceOption + ", toolChoice=" + toolChoice + ", guidedChoice=" + guidedChoice - + ", guidedRegex=" + guidedRegex + ", guidedGrammar=" + guidedGrammar + ", frequencyPenalty=" + frequencyPenalty + ", logitBias=" - + logitBias - + ", logprobs=" + logprobs + ", topLogprobs=" + topLogprobs + ", maxCompletionTokens=" + maxCompletionTokens + ", n=" + n - + ", presencePenalty=" + presencePenalty + ", seed=" + seed + ", stop=" + stop + ", temperature=" + temperature + ", topP=" + topP - + ", timeLimit=" + timeLimit + ", responseFormat=" + responseFormat + ", jsonSchema=" + jsonSchema + ", repetitionPenalty=" - + repetitionPenalty + ", lengthPenalty=" + lengthPenalty + ", context=" + context + "]"; - } - /** * Returns a new {@link Builder} instance. *
@@ -443,4 +431,16 @@ public boolean equals(Object obj) { return false; return true; } + + @Override + public String toString() { + return "ChatParameters [modelId=" + modelId + ", transactionId=" + transactionId + ", projectId=" + projectId + ", spaceId=" + spaceId + + ", crypto=" + crypto + ", toolChoiceOption=" + toolChoiceOption + ", toolChoice=" + toolChoice + ", guidedChoice=" + guidedChoice + + ", guidedRegex=" + guidedRegex + ", guidedGrammar=" + guidedGrammar + ", frequencyPenalty=" + frequencyPenalty + ", logitBias=" + + logitBias + + ", logprobs=" + logprobs + ", topLogprobs=" + topLogprobs + ", maxCompletionTokens=" + maxCompletionTokens + ", n=" + n + + ", presencePenalty=" + presencePenalty + ", seed=" + seed + ", stop=" + stop + ", temperature=" + temperature + ", topP=" + topP + + ", timeLimit=" + timeLimit + ", responseFormat=" + responseFormat + ", jsonSchema=" + jsonSchema + ", repetitionPenalty=" + + repetitionPenalty + ", lengthPenalty=" + lengthPenalty + ", context=" + context + "]"; + } }