mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 23:51:00 +00:00
naming fix
This commit is contained in:
parent
a15a4a4be2
commit
ba1d50c67b
2 changed files with 5 additions and 5 deletions
|
@ -34,8 +34,8 @@ class BasicScoringImpl(Scoring, ScoringFunctionsProtocolPrivate):
|
|||
self.scoring_fn_id_impls = {}
|
||||
|
||||
async def initialize(self) -> None:
|
||||
for x in FIXED_FNS:
|
||||
impl = x()
|
||||
for fn in FIXED_FNS:
|
||||
impl = fn()
|
||||
for fn_defs in impl.get_supported_scoring_fn_defs():
|
||||
self.scoring_fn_id_impls[fn_defs.identifier] = impl
|
||||
|
||||
|
|
|
@ -40,8 +40,8 @@ class LlmAsJudgeScoringImpl(Scoring, ScoringFunctionsProtocolPrivate):
|
|||
self.scoring_fn_id_impls = {}
|
||||
|
||||
async def initialize(self) -> None:
|
||||
for x in LLM_JUDGE_FNS:
|
||||
impl = x(inference_api=self.inference_api)
|
||||
for fn in LLM_JUDGE_FNS:
|
||||
impl = fn(inference_api=self.inference_api)
|
||||
for fn_defs in impl.get_supported_scoring_fn_defs():
|
||||
self.scoring_fn_id_impls[fn_defs.identifier] = impl
|
||||
self.llm_as_judge_fn = impl
|
||||
|
@ -58,7 +58,7 @@ class LlmAsJudgeScoringImpl(Scoring, ScoringFunctionsProtocolPrivate):
|
|||
for f in scoring_fn_defs_list:
|
||||
assert f.identifier.startswith(
|
||||
"llm-as-judge"
|
||||
), "All meta-reference scoring fn must have identifier prefixed with 'meta-reference'! "
|
||||
), "All llm-as-judge scoring fn must have identifier prefixed with 'llm-as-judge'! "
|
||||
|
||||
return scoring_fn_defs_list
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue