Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: remove the stream option of zhipu and gemini (#9319)
非法操作da25b919804f
diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-001.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-001.yamlindex d84e9937e0b..8d8cd248474 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-001.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-001.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-002.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-002.yamlindex 2ff70564b2a..ae6b85cb230 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-002.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-002.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0827.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0827.yamlindex 4e0209890a3..bbc697e934e 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0827.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0827.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0924.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0924.yamlindex 2aea8149f4c..890faf8c3f4 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0924.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-8b-exp-0924.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-exp-0827.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-exp-0827.yamlindex faabc5e4d13..c5695e5dda8 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-exp-0827.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-exp-0827.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-latest.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-latest.yamlindex a22fcca9419..d1c264c3a7f 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-latest.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash-latest.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash.yamlindex dfd55c3a949..6b794e9beee 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-flash.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-001.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-001.yamlindex a1feff171d4..9ac5e3ad1b9 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-001.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-001.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-002.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-002.yamlindex 9ae07a06c51..f1d01d0763d 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-002.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-002.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0801.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0801.yamlindex 97c68f7a18d..0a918e0d7b1 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0801.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0801.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0827.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0827.yamlindex 860e4816a16..7452ce46e7d 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0827.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-exp-0827.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-latest.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-latest.yamlindex d1bf7d269de..65c2d97e924 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-latest.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro-latest.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro.yamlindex bdd70b34a21..12620b57b61 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-1.5-pro.yaml@@ -32,15 +32,6 @@ parameter_rules:max: 8192- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-pro-vision.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-pro-vision.yamlindex 2d213d56adb..075e484e469 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-pro-vision.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-pro-vision.yaml@@ -27,15 +27,6 @@ parameter_rules:default: 4096min: 1max: 4096- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/google/llm/gemini-pro.yaml b/api/core/model_runtime/model_providers/google/llm/gemini-pro.yamlindex e2f487c1ee9..4e9f59e7da9 100644--- a/api/core/model_runtime/model_providers/google/llm/gemini-pro.yaml+++ b/api/core/model_runtime/model_providers/google/llm/gemini-pro.yaml@@ -31,15 +31,6 @@ parameter_rules:max: 2048- name: response_formatuse_template: response_format- - name: stream- label:- zh_Hans: 流式输出- en_US: Stream- type: boolean- help:- zh_Hans: 流式输出允许模型在生成文本的过程中逐步返回结果,而不是一次性生成全部结果后再返回。- en_US: Streaming output allows the model to return results incrementally as it generates text, rather than generating all the results at once.- default: falsepricing:input: '0.00'output: '0.00'diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/chatglm_turbo.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/chatglm_turbo.yamlindex 18a0adec675..049fae6c167 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/chatglm_turbo.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/chatglm_turbo.yaml@@ -28,15 +28,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: return_typelabel:zh_Hans: 回复类型diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yamlindex 7fcf6922023..7c8da51d1b8 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yamlindex fcd7c7768c7..7a7b4b08927 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yamlindex c9ae5abf196..09ad842801e 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yamlindex 98c4f72c723..aee82a0602a 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yamlindex 0b5391ce2f8..791a77ba157 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4.yamlindex 62f453fb775..13ed1e49c99 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_long.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_long.yamlindex 350b080c3fc..badcee22db7 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_long.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_long.yaml@@ -35,15 +35,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_plus.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_plus.yamlindex 2d7ebd71cf2..e2f785e1bc4 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_plus.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4_plus.yaml@@ -32,15 +32,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v.yamlindex 3a1120ff375..3baa298300a 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v.yaml@@ -30,15 +30,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v_plus.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v_plus.yamlindex 14b9623e5a8..91550ceee8e 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v_plus.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_4v_plus.yaml@@ -30,15 +30,6 @@ parameter_rules:zh_Hans: do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效。默认值为 true。en_US: When `do_sample` is set to true, the sampling strategy is enabled. When `do_sample` is set to false, the sampling strategies such as `temperature` and `top_p` will not take effect. The default value is true.default: true- - name: stream- label:- zh_Hans: 流处理- en_US: Event Stream- type: boolean- help:- zh_Hans: 使用同步调用时,此参数应当设置为 fasle 或者省略。表示模型生成完所有内容后一次性返回所有内容。默认值为 false。如果设置为 true,模型将通过标准 Event Stream ,逐块返回模型生成内容。Event Stream 结束时会返回一条data:[DONE]消息。注意:在模型流式输出生成内容的过程中,我们会分批对模型生成内容进行检测,当检测到违法及不良信息时,API会返回错误码(1301)。开发者识别到错误码(1301),应及时采取(清屏、重启对话)等措施删除生成内容,并确保不将含有违法及不良信息的内容传递给模型继续生成,避免其造成负面影响。- en_US: When using synchronous invocation, this parameter should be set to false or omitted. It indicates that the model will return all the generated content at once after the generation is complete. The default value is false. If set to true, the model will return the generated content in chunks via the standard Event Stream. A data:[DONE] message will be sent at the end of the Event Stream.Note:During the model's streaming output process, we will batch check the generated content. If illegal or harmful information is detected, the API will return an error code (1301). Developers who identify error code (1301) should promptly take actions such as clearing the screen or restarting the conversation to delete the generated content. They should also ensure that no illegal or harmful content is passed back to the model for continued generation to avoid negative impacts.- default: false- name: max_tokensuse_template: max_tokensdefault: 1024