Class OpenAiCompatibleJudge

java.lang.Object
dev.dokimos.server.judge.OpenAiCompatibleJudge
All Implemented Interfaces:
JudgeLM

public class OpenAiCompatibleJudge extends Object implements JudgeLM
A JudgeLM that calls an OpenAI-compatible chat completions endpoint over the JDK HTTP client, with no vendor SDK. The payload is built and parsed with Jackson. A failed call (HTTP status 400 or above, a timeout, or a network error) raises a JudgeCallException carrying the status so the worker can decide whether to retry. The API key is held only for the lifetime of the job and is never logged.
  • Constructor Details

    • OpenAiCompatibleJudge

      public OpenAiCompatibleJudge(String baseUrl, String model, String apiKey)
  • Method Details