Merge branch 'zhsama/remove-reasoning-ui' into feat/support-agent-sandbox

This commit is contained in:
zhsama
2026-02-10 00:59:08 +08:00
26 changed files with 0 additions and 147 deletions

View File

@@ -1,40 +0,0 @@
import type { FC } from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Switch from '@/app/components/base/switch'
import Field from '@/app/components/workflow/nodes/_base/components/field'
type ReasoningFormatConfigProps = {
value?: 'tagged' | 'separated'
onChange: (value: 'tagged' | 'separated') => void
readonly?: boolean
}
const ReasoningFormatConfig: FC<ReasoningFormatConfigProps> = ({
value = 'tagged',
onChange,
readonly = false,
}) => {
const { t } = useTranslation()
return (
<Field
title={t('nodes.llm.reasoningFormat.title', { ns: 'workflow' })}
tooltip={t('nodes.llm.reasoningFormat.tooltip', { ns: 'workflow' })}
operations={(
// ON = separated, OFF = tagged
<Switch
defaultValue={value === 'separated'}
onChange={enabled => onChange(enabled ? 'separated' : 'tagged')}
size="md"
disabled={readonly}
key={value}
/>
)}
>
<div />
</Field>
)
}
export default ReasoningFormatConfig

View File

@@ -23,7 +23,6 @@ import MemoryConfig from '../_base/components/memory-config'
import VarReferencePicker from '../_base/components/variable/var-reference-picker'
import ComputerUseConfig from './components/computer-use-config'
import ConfigPrompt from './components/config-prompt'
import ReasoningFormatConfig from './components/reasoning-format-config'
import StructureOutput from './components/structure-output'
import Tools from './components/tools'
import MaxIterations from './components/tools/max-iterations'
@@ -72,7 +71,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
handleStructureOutputEnableChange,
handleStructureOutputChange,
filterJinja2InputVar,
handleReasoningFormatChange,
isSupportSandbox,
handleComputerUseChange,
} = useConfig(id, data)
@@ -335,13 +333,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
value={inputs.max_iterations}
onChange={handleMaxIterationsChange}
/>
{/* Reasoning Format */}
<ReasoningFormatConfig
value={inputs.reasoning_format || 'tagged'}
onChange={handleReasoningFormatChange}
readonly={readOnly}
/>
</div>
</FieldCollapse>

View File

@@ -38,7 +38,6 @@ export type LLMNodeType = CommonNodeType & {
}
structured_output_enabled?: boolean
structured_output?: StructuredOutput
reasoning_format?: 'tagged' | 'separated'
tools?: ToolValue[]
tool_settings?: ToolSetting[]
max_iterations?: number

View File

@@ -362,14 +362,6 @@ const useConfig = (id: string, payload: LLMNodeType) => {
return [VarType.arrayObject, VarType.array, VarType.number, VarType.string, VarType.secret, VarType.arrayString, VarType.arrayNumber, VarType.file, VarType.arrayFile].includes(varPayload.type)
}, [])
// reasoning format
const handleReasoningFormatChange = useCallback((reasoningFormat: 'tagged' | 'separated') => {
const newInputs = produce(inputRef.current, (draft) => {
draft.reasoning_format = reasoningFormat
})
setInputs(newInputs)
}, [setInputs])
const {
availableVars,
availableNodesWithParent,
@@ -411,7 +403,6 @@ const useConfig = (id: string, payload: LLMNodeType) => {
setStructuredOutputCollapsed,
handleStructureOutputEnableChange,
filterJinja2InputVar,
handleReasoningFormatChange,
isSupportSandbox,
handleComputerUseChange,
}

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "محتوى التفكير",
"nodes.llm.outputVars.usage": "معلومات استخدام النموذج",
"nodes.llm.prompt": "المطالبة",
"nodes.llm.reasoningFormat.separated": "فصل علامات التفكير",
"nodes.llm.reasoningFormat.tagged": "الاحتفاظ بعلامات التفكير",
"nodes.llm.reasoningFormat.title": "تمكين فصل علامة التفكير",
"nodes.llm.reasoningFormat.tooltip": "استخراج المحتوى من علامات التفكير وتخزينه في حقل content_reasoning.",
"nodes.llm.resolution.high": "عالية",
"nodes.llm.resolution.low": "منخفضة",
"nodes.llm.resolution.name": "الدقة",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Reasoning-Inhalt",
"nodes.llm.outputVars.usage": "Nutzungsinformationen des Modells",
"nodes.llm.prompt": "Prompt",
"nodes.llm.reasoningFormat.separated": "Separate Denk tags",
"nodes.llm.reasoningFormat.tagged": "Behalte die Denk-Tags",
"nodes.llm.reasoningFormat.title": "Aktivieren Sie die Trennung von Argumentations-Tags",
"nodes.llm.reasoningFormat.tooltip": "Inhalte aus Denk-Tags extrahieren und im Feld reasoning_content speichern.",
"nodes.llm.resolution.high": "Hoch",
"nodes.llm.resolution.low": "Niedrig",
"nodes.llm.resolution.name": "Auflösung",

View File

@@ -819,10 +819,6 @@
"nodes.llm.outputVars.reasoning_content": "Reasoning Content",
"nodes.llm.outputVars.usage": "Model Usage Information",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Separate think tags",
"nodes.llm.reasoningFormat.tagged": "Keep think tags",
"nodes.llm.reasoningFormat.title": "Enable reasoning tag separation",
"nodes.llm.reasoningFormat.tooltip": "Extract content from think tags and store it in the reasoning_content field.",
"nodes.llm.removeContext": "Remove context",
"nodes.llm.resolution.high": "High",
"nodes.llm.resolution.low": "Low",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Contenido de razonamiento",
"nodes.llm.outputVars.usage": "Información de uso del modelo",
"nodes.llm.prompt": "indicación",
"nodes.llm.reasoningFormat.separated": "Separar etiquetas de pensamiento",
"nodes.llm.reasoningFormat.tagged": "Mantén las etiquetas de pensamiento",
"nodes.llm.reasoningFormat.title": "Habilitar la separación de etiquetas de razonamiento",
"nodes.llm.reasoningFormat.tooltip": "Extraer contenido de las etiquetas de pensamiento y almacenarlo en el campo reasoning_content.",
"nodes.llm.resolution.high": "Alta",
"nodes.llm.resolution.low": "Baja",
"nodes.llm.resolution.name": "Resolución",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "محتوای استدلال",
"nodes.llm.outputVars.usage": "اطلاعات استفاده از مدل",
"nodes.llm.prompt": "پیشنهاد",
"nodes.llm.reasoningFormat.separated": "تگ‌های تفکر جداگانه",
"nodes.llm.reasoningFormat.tagged": "به فکر برچسب‌ها باشید",
"nodes.llm.reasoningFormat.title": "فعال‌سازی جداسازی برچسب‌های استدلال",
"nodes.llm.reasoningFormat.tooltip": "محتوا را از تگ‌های تفکر استخراج کرده و در فیلد reasoning_content ذخیره کنید.",
"nodes.llm.resolution.high": "بالا",
"nodes.llm.resolution.low": "پایین",
"nodes.llm.resolution.name": "وضوح",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Contenu de raisonnement",
"nodes.llm.outputVars.usage": "Informations sur l'utilisation du modèle",
"nodes.llm.prompt": "invite",
"nodes.llm.reasoningFormat.separated": "Séparer les balises de réflexion",
"nodes.llm.reasoningFormat.tagged": "Gardez les étiquettes de pensée",
"nodes.llm.reasoningFormat.title": "Activer la séparation des balises de raisonnement",
"nodes.llm.reasoningFormat.tooltip": "Extraire le contenu des balises think et le stocker dans le champ reasoning_content.",
"nodes.llm.resolution.high": "Haute",
"nodes.llm.resolution.low": "Basse",
"nodes.llm.resolution.name": "Résolution",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "तर्क सामग्री",
"nodes.llm.outputVars.usage": "मॉडल उपयोग जानकारी",
"nodes.llm.prompt": "प्रॉम्प्ट",
"nodes.llm.reasoningFormat.separated": "अलग सोच टैग",
"nodes.llm.reasoningFormat.tagged": "टैग्स के बारे में सोचते रहें",
"nodes.llm.reasoningFormat.title": "कारण संबंध टैग विभाजन सक्षम करें",
"nodes.llm.reasoningFormat.tooltip": "थिंक टैग से सामग्री निकाले और इसे reasoning_content क्षेत्र में संग्रहित करें।",
"nodes.llm.resolution.high": "उच्च",
"nodes.llm.resolution.low": "निम्न",
"nodes.llm.resolution.name": "रेजोल्यूशन",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Konten penalaran",
"nodes.llm.outputVars.usage": "Informasi Penggunaan Model",
"nodes.llm.prompt": "cepat",
"nodes.llm.reasoningFormat.separated": "Pisahkan tag pemikiran",
"nodes.llm.reasoningFormat.tagged": "Tetap pikirkan tag",
"nodes.llm.reasoningFormat.title": "Aktifkan pemisahan tag penalaran",
"nodes.llm.reasoningFormat.tooltip": "Ekstrak konten dari tag pikir dan simpan di field reasoning_content.",
"nodes.llm.resolution.high": "Tinggi",
"nodes.llm.resolution.low": "Rendah",
"nodes.llm.resolution.name": "Resolusi",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Contenuto del ragionamento",
"nodes.llm.outputVars.usage": "Informazioni sull'utilizzo del modello",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Tag di pensiero separati",
"nodes.llm.reasoningFormat.tagged": "Continua a pensare ai tag",
"nodes.llm.reasoningFormat.title": "Abilita la separazione dei tag di ragionamento",
"nodes.llm.reasoningFormat.tooltip": "Estrai il contenuto dai tag think e conservalo nel campo reasoning_content.",
"nodes.llm.resolution.high": "Alta",
"nodes.llm.resolution.low": "Bassa",
"nodes.llm.resolution.name": "Risoluzione",

View File

@@ -791,10 +791,6 @@
"nodes.llm.outputVars.reasoning_content": "推論内容",
"nodes.llm.outputVars.usage": "モデル使用量",
"nodes.llm.prompt": "プロンプト",
"nodes.llm.reasoningFormat.separated": "思考タグを分ける",
"nodes.llm.reasoningFormat.tagged": "タグを考え続けてください",
"nodes.llm.reasoningFormat.title": "推論タグの分離を有効にする",
"nodes.llm.reasoningFormat.tooltip": "thinkタグから内容を抽出し、それをreasoning_contentフィールドに保存します。",
"nodes.llm.removeContext": "コンテキストを削除",
"nodes.llm.resolution.high": "高",
"nodes.llm.resolution.low": "低",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "추론 내용",
"nodes.llm.outputVars.usage": "모델 사용 정보",
"nodes.llm.prompt": "프롬프트",
"nodes.llm.reasoningFormat.separated": "추론 태그 분리",
"nodes.llm.reasoningFormat.tagged": "추론 태그 유지",
"nodes.llm.reasoningFormat.title": "추론 태그 분리 활성화",
"nodes.llm.reasoningFormat.tooltip": "추론 태그에서 내용을 추출하고 이를 reasoning_content 필드에 저장합니다",
"nodes.llm.resolution.high": "높음",
"nodes.llm.resolution.low": "낮음",
"nodes.llm.resolution.name": "해상도",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Treść rozumowania",
"nodes.llm.outputVars.usage": "Informacje o użyciu modelu",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Oddziel tagi myślenia",
"nodes.llm.reasoningFormat.tagged": "Zachowaj myśl tagi",
"nodes.llm.reasoningFormat.title": "Włącz separację tagów uzasadnienia",
"nodes.llm.reasoningFormat.tooltip": "Wyodrębnij treść z tagów think i przechowaj ją w polu reasoning_content.",
"nodes.llm.resolution.high": "Wysoka",
"nodes.llm.resolution.low": "Niska",
"nodes.llm.resolution.name": "Rozdzielczość",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Conteúdo de raciocínio",
"nodes.llm.outputVars.usage": "Informações de uso do modelo",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Separe as tags de pensamento",
"nodes.llm.reasoningFormat.tagged": "Mantenha as tags de pensamento",
"nodes.llm.reasoningFormat.title": "Ativar separação de tags de raciocínio",
"nodes.llm.reasoningFormat.tooltip": "Extraia o conteúdo das tags de pensamento e armazene-o no campo reasoning_content.",
"nodes.llm.resolution.high": "Alta",
"nodes.llm.resolution.low": "Baixa",
"nodes.llm.resolution.name": "Resolução",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Conținut de raționament",
"nodes.llm.outputVars.usage": "Informații de utilizare a modelului",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Etichete de gândire separate",
"nodes.llm.reasoningFormat.tagged": "Ține minte etichetele",
"nodes.llm.reasoningFormat.title": "Activează separarea etichetelor de raționare",
"nodes.llm.reasoningFormat.tooltip": "Extrage conținutul din etichetele think și stochează-l în câmpul reasoning_content.",
"nodes.llm.resolution.high": "Înaltă",
"nodes.llm.resolution.low": "Joasă",
"nodes.llm.resolution.name": "Rezoluție",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Содержимое рассуждений",
"nodes.llm.outputVars.usage": "Информация об использовании модели",
"nodes.llm.prompt": "подсказка",
"nodes.llm.reasoningFormat.separated": "Отдельные теги для мышления",
"nodes.llm.reasoningFormat.tagged": "Продолжайте думать о тегах",
"nodes.llm.reasoningFormat.title": "Включите разделение тегов на основе логики",
"nodes.llm.reasoningFormat.tooltip": "Извлечь содержимое из тегов think и сохранить его в поле reasoning_content.",
"nodes.llm.resolution.high": "Высокое",
"nodes.llm.resolution.low": "Низкое",
"nodes.llm.resolution.name": "Разрешение",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Vsebina razmišljanja",
"nodes.llm.outputVars.usage": "Informacije o uporabi modela",
"nodes.llm.prompt": "ukaz",
"nodes.llm.reasoningFormat.separated": "Ločite oznake za razmišljanje",
"nodes.llm.reasoningFormat.tagged": "Ohranite oznake za razmišljanje",
"nodes.llm.reasoningFormat.title": "Omogoči ločevanje oznak za razsojanje",
"nodes.llm.reasoningFormat.tooltip": "Izvleći vsebino iz miselnih oznak in jo shraniti v polje reasoning_content.",
"nodes.llm.resolution.high": "Visoko",
"nodes.llm.resolution.low": "Nizko",
"nodes.llm.resolution.name": "Resolucija",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "เนื้อหาการให้เหตุผล",
"nodes.llm.outputVars.usage": "ข้อมูลการใช้งานรุ่น",
"nodes.llm.prompt": "พร้อมท์",
"nodes.llm.reasoningFormat.separated": "แยกแท็กความคิดเห็น",
"nodes.llm.reasoningFormat.tagged": "รักษาความคิดเกี่ยวกับแท็ก",
"nodes.llm.reasoningFormat.title": "เปิดใช้งานการแยกแท็กการเหตุผล",
"nodes.llm.reasoningFormat.tooltip": "ดึงเนื้อหาจากแท็กคิดและเก็บไว้ในฟิลด์ reasoning_content.",
"nodes.llm.resolution.high": "สูง",
"nodes.llm.resolution.low": "ต่ํา",
"nodes.llm.resolution.name": "มติ",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Akıl yürütme içeriği",
"nodes.llm.outputVars.usage": "Model Kullanım Bilgileri",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Ayrı düşünce etiketleri",
"nodes.llm.reasoningFormat.tagged": "Etiketleri düşünmeye devam et",
"nodes.llm.reasoningFormat.title": "Akıl yürütme etiket ayrımını etkinleştir",
"nodes.llm.reasoningFormat.tooltip": "Düşünce etiketlerinden içeriği çıkarın ve bunu reasoning_content alanında saklayın.",
"nodes.llm.resolution.high": "Yüksek",
"nodes.llm.resolution.low": "Düşük",
"nodes.llm.resolution.name": "Çözünürlük",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Зміст міркування",
"nodes.llm.outputVars.usage": "Інформація про використання моделі",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Окремі теги для думок",
"nodes.llm.reasoningFormat.tagged": "Продовжуйте думати про мітки",
"nodes.llm.reasoningFormat.title": "Увімкніть розділення тегів для міркування",
"nodes.llm.reasoningFormat.tooltip": "Витягніть вміст з тегів think і зберігайте його в полі reasoning_content.",
"nodes.llm.resolution.high": "Висока",
"nodes.llm.resolution.low": "Низька",
"nodes.llm.resolution.name": "Роздільна здатність",

View File

@@ -780,10 +780,6 @@
"nodes.llm.outputVars.reasoning_content": "Nội dung lập luận",
"nodes.llm.outputVars.usage": "Thông tin sử dụng mô hình",
"nodes.llm.prompt": "prompt",
"nodes.llm.reasoningFormat.separated": "Tách biệt các thẻ suy nghĩ",
"nodes.llm.reasoningFormat.tagged": "Giữ lại thẻ suy nghĩ",
"nodes.llm.reasoningFormat.title": "Bật chế độ phân tách nhãn lý luận",
"nodes.llm.reasoningFormat.tooltip": "Trích xuất nội dung từ các thẻ think và lưu nó vào trường reasoning_content.",
"nodes.llm.resolution.high": "Cao",
"nodes.llm.resolution.low": "Thấp",
"nodes.llm.resolution.name": "Độ phân giải",

View File

@@ -812,10 +812,6 @@
"nodes.llm.outputVars.reasoning_content": "推理内容",
"nodes.llm.outputVars.usage": "模型用量信息",
"nodes.llm.prompt": "提示词",
"nodes.llm.reasoningFormat.separated": "分开思考标签",
"nodes.llm.reasoningFormat.tagged": "保持思考标签",
"nodes.llm.reasoningFormat.title": "启用推理标签分离",
"nodes.llm.reasoningFormat.tooltip": "从think标签中提取内容并将其存储在reasoning_content字段中。",
"nodes.llm.removeContext": "删除上下文",
"nodes.llm.resolution.high": "高",
"nodes.llm.resolution.low": "低",

View File

@@ -792,10 +792,6 @@
"nodes.llm.outputVars.reasoning_content": "推理內容",
"nodes.llm.outputVars.usage": "模型用量信息",
"nodes.llm.prompt": "提示詞",
"nodes.llm.reasoningFormat.separated": "分開思考標籤",
"nodes.llm.reasoningFormat.tagged": "保持思考標籤",
"nodes.llm.reasoningFormat.title": "啟用推理標籤分離",
"nodes.llm.reasoningFormat.tooltip": "從 think 標籤中提取內容並將其存儲在 reasoning_content 欄位中。",
"nodes.llm.removeContext": "刪除上下文",
"nodes.llm.resolution.high": "高",
"nodes.llm.resolution.low": "低",