Skip to content

Consolidate OpenAI server: unify implementations, add multi-protocol support#243

Merged
bernardladenthin merged 23 commits into
mainfrom
claude/clever-clarke-6a6vvg
Jun 20, 2026
Merged

Consolidate OpenAI server: unify implementations, add multi-protocol support#243
bernardladenthin merged 23 commits into
mainfrom
claude/clever-clarke-6a6vvg

fix(ci): disable sccache on the dockcross/Linux-host builds (sccache …

96cfdd7
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 20, 2026 in 40s

Annotations

Check failure on line 341 in src/main/java/net/ladenthin/llama/server/AnthropicApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "content_block_start" 4 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzubp6BDi-hf53h&open=AZ7e-jzubp6BDi-hf53h&pullRequest=243

Check failure on line 198 in src/main/java/net/ladenthin/llama/server/OllamaApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "content" 7 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyzbp6BDi-hf52K&open=AZ7e-jyzbp6BDi-hf52K&pullRequest=243

Check warning on line 305 in src/test/java/net/ladenthin/llama/server/OpenAiCompatServerHttpTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jx4bp6BDi-hf500&open=AZ7e-jx4bp6BDi-hf500&pullRequest=243

Check warning on line 64 in src/test/java/net/ladenthin/llama/server/OaiRerankSupportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyTbp6BDi-hf51S&open=AZ7e-jyTbp6BDi-hf51S&pullRequest=243

Check warning on line 88 in src/test/java/net/ladenthin/llama/server/OpenAiCompatServerIntegrationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyibp6BDi-hf51v&open=AZ7e-jyibp6BDi-hf51v&pullRequest=243

Check warning on line 77 in src/test/java/net/ladenthin/llama/server/OpenAiServerCompletionIntegrationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyGbp6BDi-hf51F&open=AZ7e-jyGbp6BDi-hf51F&pullRequest=243

Check warning on line 926 in src/main/java/net/ladenthin/llama/server/OpenAiCompatServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzebp6BDi-hf527&open=AZ7e-jzebp6BDi-hf527&pullRequest=243

Check warning on line 131 in src/test/java/net/ladenthin/llama/server/OpenAiRequestMapperTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxibp6BDi-hf50D&open=AZ7e-jxibp6BDi-hf50D&pullRequest=243

Check warning on line 426 in src/test/java/net/ladenthin/llama/server/OpenAiCompatServerHttpTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jx4bp6BDi-hf508&open=AZ7e-jx4bp6BDi-hf508&pullRequest=243

Check warning on line 19 in src/test/java/net/ladenthin/llama/server/OpenAiServerConfigTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jw_bp6BDi-hf5zO&open=AZ7e-jw_bp6BDi-hf5zO&pullRequest=243

Check warning on line 137 in src/test/java/net/ladenthin/llama/server/OllamaApiSupportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxVbp6BDi-hf5zm&open=AZ7e-jxVbp6BDi-hf5zm&pullRequest=243

Check warning on line 110 in src/test/java/net/ladenthin/llama/server/OpenAiRequestMapperTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxibp6BDi-hf50A&open=AZ7e-jxibp6BDi-hf50A&pullRequest=243

Check failure on line 96 in src/main/java/net/ladenthin/llama/server/OllamaApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "tools" 3 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyzbp6BDi-hf52J&open=AZ7e-jyzbp6BDi-hf52J&pullRequest=243

Check failure on line 52 in src/main/java/net/ladenthin/llama/server/ResponsesApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "model" 4 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzKbp6BDi-hf52Y&open=AZ7e-jzKbp6BDi-hf52Y&pullRequest=243

Check warning on line 944 in src/main/java/net/ladenthin/llama/server/OpenAiCompatServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzebp6BDi-hf53M&open=AZ7e-jzebp6BDi-hf53M&pullRequest=243

Check warning on line 70 in src/main/java/net/ladenthin/llama/server/OpenAiCompatServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzebp6BDi-hf53Q&open=AZ7e-jzebp6BDi-hf53Q&pullRequest=243

Check failure on line 332 in src/main/java/net/ladenthin/llama/server/OllamaApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "prompt" 3 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyzbp6BDi-hf52Q&open=AZ7e-jyzbp6BDi-hf52Q&pullRequest=243

Check warning on line 42 in src/test/java/net/ladenthin/llama/server/OpenAiServerEmbeddingsIntegrationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxpbp6BDi-hf50H&open=AZ7e-jxpbp6BDi-hf50H&pullRequest=243

Check failure on line 197 in src/main/java/net/ladenthin/llama/server/OllamaApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "assistant" 3 times.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jyzbp6BDi-hf52M&open=AZ7e-jyzbp6BDi-hf52M&pullRequest=243

Check warning on line 88 in src/main/java/net/ladenthin/llama/server/AnthropicApiSupport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7kdmwGtbSxmKwNHZUy&open=AZ7kdmwGtbSxmKwNHZUy&pullRequest=243

Check warning on line 137 in src/test/java/net/ladenthin/llama/server/ResponsesApiSupportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7kdmp_tbSxmKwNHZUm&open=AZ7kdmp_tbSxmKwNHZUm&pullRequest=243

Check warning on line 939 in src/main/java/net/ladenthin/llama/server/OpenAiCompatServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jzebp6BDi-hf53H&open=AZ7e-jzebp6BDi-hf53H&pullRequest=243

Check warning on line 84 in src/test/java/net/ladenthin/llama/server/ResponsesApiSupportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxNbp6BDi-hf5zX&open=AZ7e-jxNbp6BDi-hf5zX&pullRequest=243

Check warning on line 112 in src/test/java/net/ladenthin/llama/server/ResponsesApiSupportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxNbp6BDi-hf5zZ&open=AZ7e-jxNbp6BDi-hf5zZ&pullRequest=243

Check warning on line 18 in src/test/java/net/ladenthin/llama/server/ToolCallDeltaAccumulatorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AZ7e-jxGbp6BDi-hf5zS&open=AZ7e-jxGbp6BDi-hf5zS&pullRequest=243