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
AllowUnsafeURL bool
HTTPClient *http.Client
Retry gaugo.RetryConfig
MaxResponseBody int64
}
Config configures an OpenAI Chat Completions judge.
type Judge ¶
type Judge struct {
// contains filtered or unexported fields
}
Judge evaluates metric prompts with OpenAI.
func (*Judge) EvaluateJSON ¶
func (j *Judge) EvaluateJSON(ctx context.Context, req gaugo.JudgeRequest) (gaugo.JudgeResponse, error)
EvaluateJSON evaluates one structured metric request.
Click to show internal directories.
Click to hide internal directories.