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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;
import com.google.common.annotations.Beta;
import javax.annotation.Nonnull;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
Expand All @@ -27,7 +26,6 @@ public final class JacksonConfiguration {
* href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.html">Jackson2ObjectMapperBuilder</a>
*/
@Nonnull
@Beta
public static JsonMapper getDefaultObjectMapper() {
return JsonMapper.builder()
.addModule(new JavaTimeModule())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class OpenAiClientException extends ClientException {
/**
* Retrieves the {@link ErrorResponse} from the OpenAI service, if available.
*
* <p>Note: This method is marked as {@link Beta} because it uses generated API types in its
* public signature.
*
* @return The {@link ErrorResponse} object, or {@code null} if not available.
*/
@Beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public OrchestrationError getClientError() {
/**
* Retrieves the {@link ErrorResponse} from the orchestration service, if available.
*
* <p>Note: This method is marked as {@link Beta} because it uses generated API types in its
* public signature.
*
* @return The {@link ErrorResponse} object, or {@code null} if not available.
* @since 1.10.0
*/
Expand All @@ -134,6 +137,9 @@ public ErrorResponse getErrorResponse() {
/**
* Retrieves the {@link ErrorResponseStreaming} from the orchestration service, if available.
*
* <p>Note: This method is marked as {@link Beta} because it uses generated API types in its
* public signature.
*
* @return The {@link ErrorResponseStreaming} object, or {@code null} if not available.
* @since 1.10.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static com.sap.ai.sdk.orchestration.OrchestrationJacksonConfiguration.getOrchestrationObjectMapper;

import com.google.common.annotations.Beta;
import com.sap.ai.sdk.orchestration.model.AzureContentSafetyInput;
import com.sap.ai.sdk.orchestration.model.AzureContentSafetyOutput;
import com.sap.ai.sdk.orchestration.model.LlamaGuard38b;
Expand All @@ -17,7 +16,6 @@
import lombok.experimental.StandardException;

/** Base exception for errors occurring during orchestration filtering. */
@Beta

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class looks well established by now.

@StandardException(access = AccessLevel.PRIVATE)
public class OrchestrationFilterException extends OrchestrationClientException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.google.common.annotations.Beta;
import com.sap.ai.sdk.orchestration.model.AzureContentSafetyInput;
import com.sap.ai.sdk.orchestration.model.AzureContentSafetyOutput;
import com.sap.ai.sdk.orchestration.model.ChatMessage;
Expand All @@ -31,7 +30,6 @@ public class OrchestrationJacksonConfiguration {
* href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.html">Jackson2ObjectMapperBuilder</a>
*/
@Nonnull
@Beta

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following this comment we just mark the method as "internal only" in the javadoc.

public static ObjectMapper getOrchestrationObjectMapper() {

final var module =
Expand Down