fix(awel): Fix HO context key error (#2862)

This commit is contained in:
Fangyin Cheng 2025-07-25 17:13:35 +08:00 committed by GitHub
parent 3a614c67bb
commit 150e84ed18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -148,6 +148,7 @@ _PARAMETER_CONTEXT_KEY = Parameter.build_from(
type=str, type=str,
optional=True, optional=True,
default="context", default="context",
alias=["context"],
description=_("The key of the context, it will be used in building the prompt"), description=_("The key of the context, it will be used in building the prompt"),
) )
_INPUTS_QUESTION = IOField.build_from( _INPUTS_QUESTION = IOField.build_from(

View File

@ -33,10 +33,11 @@ def _load_space_name() -> List[OptionValue]:
_PARAMETER_CONTEXT_KEY = Parameter.build_from( _PARAMETER_CONTEXT_KEY = Parameter.build_from(
_("Context Key"), _("Context Key"),
"context", "context_key",
type=str, type=str,
optional=True, optional=True,
default="context", default="context",
alias=["context"],
description=_("The key of the context, it will be used in building the prompt"), description=_("The key of the context, it will be used in building the prompt"),
) )
_PARAMETER_TOP_K = Parameter.build_from( _PARAMETER_TOP_K = Parameter.build_from(