Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIKey string
Model string
BaseURL string
EndpointURL string
HTTPClient *http.Client
Mode Mode
OpenAICompatEndpoint OpenAIEndpoint
AnthropicAPIVersion string
AnthropicMaxTokens int
Retry gaugo.RetryConfig
MaxResponseBody int64
}
Config configures a local model service judge.
type Judge ¶
type Judge struct {
// contains filtered or unexported fields
}
Judge evaluates metric prompts with a local model service.
func (*Judge) EvaluateJSON ¶
func (j *Judge) EvaluateJSON(ctx context.Context, req gaugo.JudgeRequest) (gaugo.JudgeResponse, error)
EvaluateJSON evaluates one structured metric request.
type OpenAIEndpoint ¶
type OpenAIEndpoint string
OpenAIEndpoint selects the OpenAI-compatible local endpoint.
const ( // OpenAIEndpointChat uses /v1/chat/completions. OpenAIEndpointChat OpenAIEndpoint = "chat_completions" // OpenAIEndpointResponses uses /v1/responses. OpenAIEndpointResponses OpenAIEndpoint = provider.ResponsesWireName )
Click to show internal directories.
Click to hide internal directories.