Skip to content

Commit 5f1d799

Browse files
committed
cleanup
Signed-off-by: Mandana Vaziri <[email protected]>
1 parent 986b0d2 commit 5f1d799

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pdl/pdl_stdlib.pdl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,23 @@ defs:
2626
parameters: {optional: object}
2727
return:
2828
defs:
29+
parameters: ${ parameters | default({}) }
2930
params:
3031
data:
3132
logprobs: true
3233
top_logprobs: 5
3334
response_format: {'type': 'json_schema', 'json_schema': {'name': 'schema', 'schema': {'enum': [True, False]}, 'strict': True}}
3435
lastOf:
3536
- lang: python
36-
def: parameters
37+
def: final_parameters
3738
code: |
3839
result = parameters | params
3940
- model: ${ model }
4041
def: evaluation
4142
input: |
4243
${ prompt }
4344
modelResponse: out
44-
parameters: ${ parameters }
45+
parameters: ${ final_parameters }
4546
- def: score
4647
data: ${ reward(response=out) }
4748
retry: 3

0 commit comments

Comments
 (0)