Files
spring-ai/docker-model-runner/src/main/java/com/ankurm/dmr/BenchProperties.java
T

15 lines
537 B
Java

package com.ankurm.dmr;
import org.springframework.boot.context.properties.ConfigurationProperties;
/** Settings for the benchmark itself (the engine settings are plain spring.ai.openai.* ones). */
@ConfigurationProperties("bench")
public record BenchProperties(String label, Integer repeats, Integer toolRuns, Integer maxTokens, String outFile) {
public BenchProperties {
if (label == null) label = "engine";
if (repeats == null) repeats = 3;
if (toolRuns == null) toolRuns = 20;
if (maxTokens == null) maxTokens = 128;
}
}