fix(llm_node): missing parameters for structure outputs (#20915)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
41e3ecc837
commit
1e03c97663
1 changed files with 2 additions and 0 deletions
|
|
@ -525,6 +525,8 @@ class LLMNode(BaseNode[LLMNodeData]):
|
||||||
# Set appropriate response format based on model capabilities
|
# Set appropriate response format based on model capabilities
|
||||||
self._set_response_format(completion_params, model_schema.parameter_rules)
|
self._set_response_format(completion_params, model_schema.parameter_rules)
|
||||||
model_config_with_cred.parameters = completion_params
|
model_config_with_cred.parameters = completion_params
|
||||||
|
# NOTE(-LAN-): This line modify the `self.node_data.model`, which is used in `_invoke_llm()`.
|
||||||
|
node_data_model.completion_params = completion_params
|
||||||
return model, model_config_with_cred
|
return model, model_config_with_cred
|
||||||
|
|
||||||
def _fetch_prompt_messages(
|
def _fetch_prompt_messages(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue