Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7087,17 +7087,28 @@ components:
EvaluationJudgeModelConfig:
type: object
required:
- model_name
- model
- system_template
- model_source
properties:
model_name:
model:
type: string
description: Name of the judge model
example: 'meta-llama/Llama-3-70B-Instruct-Turbo'
system_template:
type: string
description: System prompt template for the judge
example: 'Imagine you are a helpful assistant'
model_source:
type: string
description: "Source of the judge model."
enum: [serverless, dedicated, external]
external_api_token:
type: string
description: "Bearer/API token for external judge models."
external_base_url:
type: string
description: "Base URL for external judge models. Must be OpenAI-compatible base URL."

EvaluationModelOrString:
oneOf:
Expand All @@ -7108,13 +7119,14 @@ components:
EvaluationModelRequest:
type: object
required:
- model_name
- model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think model_source is required here as well

- max_tokens
- temperature
- system_template
- input_template
- model_source
properties:
model_name:
model:
type: string
description: Name of the model to evaluate
example: 'meta-llama/Llama-3-70B-Instruct-Turbo'
Expand All @@ -7138,6 +7150,16 @@ components:
type: string
description: Input prompt template
example: 'Please classify {{prompt}} based on the labels below'
model_source:
type: string
description: "Source of the model."
enum: [serverless, dedicated, external]
external_api_token:
type: string
description: "Bearer/API token for external models."
external_base_url:
type: string
description: "Base URL for external models. Must be OpenAI-compatible base URL"

EvaluationResponse:
type: object
Expand Down