File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 48
48
from opentelemetry .sdk .trace import export
49
49
from opentelemetry .sdk .trace import ReadableSpan
50
50
from opentelemetry .sdk .trace import TracerProvider
51
+ from pydantic import alias_generators
51
52
from pydantic import BaseModel
53
+ from pydantic import ConfigDict
52
54
from pydantic import ValidationError
53
55
from starlette .types import Lifespan
54
56
@@ -121,11 +123,20 @@ class AddSessionToEvalSetRequest(BaseModel):
121
123
122
124
123
125
class RunEvalRequest (BaseModel ):
126
+ model_config = ConfigDict (
127
+ alias_generator = alias_generators .to_camel ,
128
+ )
129
+
124
130
eval_ids : list [str ] # if empty, then all evals in the eval set are run.
125
131
eval_metrics : list [EvalMetric ]
126
132
127
133
128
134
class RunEvalResult (BaseModel ):
135
+ model_config = ConfigDict (
136
+ alias_generator = alias_generators .to_camel ,
137
+ populate_by_name = True ,
138
+ )
139
+
129
140
eval_set_id : str
130
141
eval_id : str
131
142
final_eval_status : EvalStatus
You can’t perform that action at this time.
0 commit comments