Message.content()
returns aContentItem
now instead of aString
. Use((TextItem) Message.content().items().get(0)).text()
if the correspondingContentItem
is aTextItem
and the string representation is needed.
- Upgrade to release 2502a of AI Core.
- Orchestration:
SingleChatMessage
, as well as newMultiChatMessage
, are now subtypes of new interfaceChatMessage
. Most variables or methods previously typed asChatMessage
inmodel
package are now typed asSingleChatMessage
.- Add missing
@Beta
annotations to allcom.sap.ai.sdk.core.client
andcom.sap.ai.sdk.core.model
classes.
- New Orchestration features:
- Spring AI integration
- Add Grounding configuration convenience
- Images are now supported as input in newly introduced
MultiChatMessage
. MultiChatMessage
also allows for multiple content items (text or image) in one object.- Grounding input can be masked with
DPIConfig
. - LLama Guard can now be used for content filtering.
- Support for tool calling and response format
- Updated the list for supported models (e.g., added amazon nova models).
- Update Orchestration client to version 0.48.2 (2501a)
- Changed return type of
List<Double> getEmbedding()
from experimental APIOpenAiEmbeddingData
tofloat[]
to match recent Spring AI change.
- Added
streamChatCompletion()
andstreamChatCompletionDeltas()
to theOrchestrationClient
.
- Update AI Core client to 2.37.0
- Introduce AI Core client to consume the AI Core Rest APIs.
Here are a few features:
- Artifact management: register and organize datasets and model artifacts.
- Configuration management: set up configurations for various models and use cases.
- Deployment management: deploy AI models and manage their lifecycle within SAP AI Core.
- Introduce Orchestration client for consuming the following features of the orchestration service:
- Harmonized LLM access via orchestration
- Prompt templates
- Content filtering
- Masking
- Introduce the OpenAI client to consume the following features:
- Chat completion and streaming chat completion
- Text
- Images
- Tools
- Generate embeddings for input text.
- Chat completion and streaming chat completion
Warning
All model classes are generated or depend on changing specifications. This means that model classes are not stable and may change in the future.