Skip to content

Commit 0803215

Browse files
authored
[bugfix] Fix a bug in --registry_path handling (#1101)
A bug in the handling of `--registry_path` was introduced in https://github.com/openai/evals/pull/1036/files#diff-a694333152a5a73db19b8951647e60aed78f43fec6b119707bc6d489289be6c0R87 To repro, run the example from https://github.com/openai/evals/blob/main/examples/retrieval-completionfn.ipynb Before the fix, the following exception will be thrown ``` TypeError: unsupported operand type(s) for /: 'list' and 'str' ```
1 parent 9161259 commit 0803215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evals/cli/oaieval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run(args: OaiEvalArguments, registry: Optional[Registry] = None) -> str:
8484

8585
registry = registry or Registry()
8686
if args.registry_path:
87-
registry.add_registry_paths([args.registry_path])
87+
registry.add_registry_paths(args.registry_path)
8888

8989
eval_spec = registry.get_eval(args.eval)
9090
assert (

0 commit comments

Comments
 (0)