mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: response_format of model_parameters will not be removed (#9148)
This commit is contained in:
parent
b279d19040
commit
499cc57082
|
@ -94,7 +94,7 @@ class LargeLanguageModel(AIModel):
|
|||
)
|
||||
|
||||
try:
|
||||
if "response_format" in model_parameters:
|
||||
if "response_format" in model_parameters and model_parameters["response_format"] in {"JSON", "XML"}:
|
||||
result = self._code_block_mode_wrapper(
|
||||
model=model,
|
||||
credentials=credentials,
|
||||
|
|
Loading…
Reference in New Issue
Block a user