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
feat: add stream for Gemini (#8678)
AAEE869a4b53a21205
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 bbc697e934e..4e0209890a3 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,6 +32,15 @@ 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 c5695e5dda8..faabc5e4d13 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,6 +32,15 @@ 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 24b1c5af8a3..6a0344699a7 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,6 +32,15 @@ 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 0a918e0d7b1..97c68f7a18d 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,6 +32,15 @@ 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 7452ce46e7d..860e4816a16 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,6 +32,15 @@ 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 b3e1ecf3aff..92cd6b310d0 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,6 +32,15 @@ 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 075e484e469..2d213d56adb 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,6 +27,15 @@ 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 4e9f59e7da9..e2f487c1ee9 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,6 +31,15 @@ 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'