From f753a7bdd7c21a996f8b7405adeb07e7a80e9352 Mon Sep 17 00:00:00 2001 From: extio-de Date: Mon, 23 Mar 2026 22:50:36 +0100 Subject: [PATCH] chore: Bump version to 2.5.2 in pom.xml and remove redundant response validation in ChatCompletionClient --- pom.xml | 2 +- .../lmlib/client/oai/completion/chat/ChatCompletionClient.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 844b1f0..0915fff 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ lm-lib de.extio lm-lib - 2.5.1 + 2.5.2 25 diff --git a/src/main/java/de/extio/lmlib/client/oai/completion/chat/ChatCompletionClient.java b/src/main/java/de/extio/lmlib/client/oai/completion/chat/ChatCompletionClient.java index 38b916b..0a0d9f9 100755 --- a/src/main/java/de/extio/lmlib/client/oai/completion/chat/ChatCompletionClient.java +++ b/src/main/java/de/extio/lmlib/client/oai/completion/chat/ChatCompletionClient.java @@ -198,9 +198,6 @@ public class ChatCompletionClient extends AbstractCompletionClient { final var content = response.getChoices().getFirst().getMessage().getContent(); final var reasoning = response.getChoices().getFirst().getMessage().getReasoningContent(); final var toolCalls = this.toToolCalls(response.getChoices().getFirst().getMessage().getToolCalls()); - if ((content == null || content.isBlank()) && toolCalls.isEmpty()) { - throw new IllegalStateException("No parseable response content from server"); - } final var finishReason = this.mapFinishReason(choice.getFinishReason()); final var statistics = createCompletionStatistics(modelProfile, start, response.getUsage(), response.getTimings(), null, content, reasoning); return new Completion(content, reasoning, finishReason, statistics, toolCalls);