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
8 changes: 7 additions & 1 deletion docs/content/migration/0.30.1-to-0.40.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p>
Expand Down Expand Up @@ -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 + "]";
}
}