We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ff69fb + fe5ec6c commit c90294eCopy full SHA for c90294e
uniflow/op/model/model_server.py
@@ -98,7 +98,10 @@ def __init__(
98
self._model_config = model_config
99
self._example_keys = None
100
101
- if "few_shot_prompt" in prompt_template and prompt_template.few_shot_prompt:
+ if (
102
+ "few_shot_prompt" in prompt_template.model_fields
103
+ and prompt_template.few_shot_prompt # noqa: W503
104
+ ):
105
self._example_keys = list(
106
prompt_template.few_shot_prompt[0].model_dump().keys()
107
)
0 commit comments