mirror of https://github.com/langgenius/dify.git
Expose LLM usage in workflows (#21766)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
parent
f925869f61
commit
816210d744
|
|
@ -372,6 +372,7 @@ class AliyunDataTrace(BaseTraceInstance):
|
|||
) -> SpanData:
|
||||
process_data = node_execution.process_data or {}
|
||||
outputs = node_execution.outputs or {}
|
||||
usage_data = process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
return SpanData(
|
||||
trace_id=trace_id,
|
||||
parent_span_id=workflow_span_id,
|
||||
|
|
@ -385,9 +386,9 @@ class AliyunDataTrace(BaseTraceInstance):
|
|||
GEN_AI_FRAMEWORK: "dify",
|
||||
GEN_AI_MODEL_NAME: process_data.get("model_name", ""),
|
||||
GEN_AI_SYSTEM: process_data.get("model_provider", ""),
|
||||
GEN_AI_USAGE_INPUT_TOKENS: str(outputs.get("usage", {}).get("prompt_tokens", 0)),
|
||||
GEN_AI_USAGE_OUTPUT_TOKENS: str(outputs.get("usage", {}).get("completion_tokens", 0)),
|
||||
GEN_AI_USAGE_TOTAL_TOKENS: str(outputs.get("usage", {}).get("total_tokens", 0)),
|
||||
GEN_AI_USAGE_INPUT_TOKENS: str(usage_data.get("prompt_tokens", 0)),
|
||||
GEN_AI_USAGE_OUTPUT_TOKENS: str(usage_data.get("completion_tokens", 0)),
|
||||
GEN_AI_USAGE_TOTAL_TOKENS: str(usage_data.get("total_tokens", 0)),
|
||||
GEN_AI_PROMPT: json.dumps(process_data.get("prompts", []), ensure_ascii=False),
|
||||
GEN_AI_COMPLETION: str(outputs.get("text", "")),
|
||||
GEN_AI_RESPONSE_FINISH_REASON: outputs.get("finish_reason", ""),
|
||||
|
|
|
|||
|
|
@ -213,11 +213,12 @@ class ArizePhoenixDataTrace(BaseTraceInstance):
|
|||
if model:
|
||||
node_metadata["ls_model_name"] = model
|
||||
|
||||
usage = json.loads(node_execution.outputs).get("usage", {}) if node_execution.outputs else {}
|
||||
if usage:
|
||||
node_metadata["total_tokens"] = usage.get("total_tokens", 0)
|
||||
node_metadata["prompt_tokens"] = usage.get("prompt_tokens", 0)
|
||||
node_metadata["completion_tokens"] = usage.get("completion_tokens", 0)
|
||||
outputs = json.loads(node_execution.outputs).get("usage", {})
|
||||
usage_data = process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
if usage_data:
|
||||
node_metadata["total_tokens"] = usage_data.get("total_tokens", 0)
|
||||
node_metadata["prompt_tokens"] = usage_data.get("prompt_tokens", 0)
|
||||
node_metadata["completion_tokens"] = usage_data.get("completion_tokens", 0)
|
||||
elif node_execution.node_type == "dataset_retrieval":
|
||||
span_kind = OpenInferenceSpanKindValues.RETRIEVER.value
|
||||
elif node_execution.node_type == "tool":
|
||||
|
|
@ -246,14 +247,19 @@ class ArizePhoenixDataTrace(BaseTraceInstance):
|
|||
if model:
|
||||
node_span.set_attribute(SpanAttributes.LLM_MODEL_NAME, model)
|
||||
|
||||
usage = json.loads(node_execution.outputs).get("usage", {}) if node_execution.outputs else {}
|
||||
if usage:
|
||||
node_span.set_attribute(SpanAttributes.LLM_TOKEN_COUNT_TOTAL, usage.get("total_tokens", 0))
|
||||
outputs = json.loads(node_execution.outputs).get("usage", {})
|
||||
usage_data = (
|
||||
process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
)
|
||||
if usage_data:
|
||||
node_span.set_attribute(
|
||||
SpanAttributes.LLM_TOKEN_COUNT_PROMPT, usage.get("prompt_tokens", 0)
|
||||
SpanAttributes.LLM_TOKEN_COUNT_TOTAL, usage_data.get("total_tokens", 0)
|
||||
)
|
||||
node_span.set_attribute(
|
||||
SpanAttributes.LLM_TOKEN_COUNT_COMPLETION, usage.get("completion_tokens", 0)
|
||||
SpanAttributes.LLM_TOKEN_COUNT_PROMPT, usage_data.get("prompt_tokens", 0)
|
||||
)
|
||||
node_span.set_attribute(
|
||||
SpanAttributes.LLM_TOKEN_COUNT_COMPLETION, usage_data.get("completion_tokens", 0)
|
||||
)
|
||||
finally:
|
||||
node_span.end(end_time=datetime_to_nanos(finished_at))
|
||||
|
|
|
|||
|
|
@ -181,12 +181,9 @@ class LangFuseDataTrace(BaseTraceInstance):
|
|||
prompt_tokens = 0
|
||||
completion_tokens = 0
|
||||
try:
|
||||
if outputs.get("usage"):
|
||||
prompt_tokens = outputs.get("usage", {}).get("prompt_tokens", 0)
|
||||
completion_tokens = outputs.get("usage", {}).get("completion_tokens", 0)
|
||||
else:
|
||||
prompt_tokens = process_data.get("usage", {}).get("prompt_tokens", 0)
|
||||
completion_tokens = process_data.get("usage", {}).get("completion_tokens", 0)
|
||||
usage_data = process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
prompt_tokens = usage_data.get("prompt_tokens", 0)
|
||||
completion_tokens = usage_data.get("completion_tokens", 0)
|
||||
except Exception:
|
||||
logger.error("Failed to extract usage", exc_info=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -206,12 +206,9 @@ class LangSmithDataTrace(BaseTraceInstance):
|
|||
prompt_tokens = 0
|
||||
completion_tokens = 0
|
||||
try:
|
||||
if outputs.get("usage"):
|
||||
prompt_tokens = outputs.get("usage", {}).get("prompt_tokens", 0)
|
||||
completion_tokens = outputs.get("usage", {}).get("completion_tokens", 0)
|
||||
else:
|
||||
prompt_tokens = process_data.get("usage", {}).get("prompt_tokens", 0)
|
||||
completion_tokens = process_data.get("usage", {}).get("completion_tokens", 0)
|
||||
usage_data = process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
prompt_tokens = usage_data.get("prompt_tokens", 0)
|
||||
completion_tokens = usage_data.get("completion_tokens", 0)
|
||||
except Exception:
|
||||
logger.error("Failed to extract usage", exc_info=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -222,10 +222,10 @@ class OpikDataTrace(BaseTraceInstance):
|
|||
)
|
||||
|
||||
try:
|
||||
if outputs.get("usage"):
|
||||
total_tokens = outputs["usage"].get("total_tokens", 0)
|
||||
prompt_tokens = outputs["usage"].get("prompt_tokens", 0)
|
||||
completion_tokens = outputs["usage"].get("completion_tokens", 0)
|
||||
usage_data = process_data.get("usage", {}) if "usage" in process_data else outputs.get("usage", {})
|
||||
total_tokens = usage_data.get("total_tokens", 0)
|
||||
prompt_tokens = usage_data.get("prompt_tokens", 0)
|
||||
completion_tokens = usage_data.get("completion_tokens", 0)
|
||||
except Exception:
|
||||
logger.error("Failed to extract usage", exc_info=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -221,15 +221,6 @@ class LLMNode(BaseNode[LLMNodeData]):
|
|||
jinja2_variables=self.node_data.prompt_config.jinja2_variables,
|
||||
)
|
||||
|
||||
process_data = {
|
||||
"model_mode": model_config.mode,
|
||||
"prompts": PromptMessageUtil.prompt_messages_to_prompt_for_saving(
|
||||
model_mode=model_config.mode, prompt_messages=prompt_messages
|
||||
),
|
||||
"model_provider": model_config.provider,
|
||||
"model_name": model_config.model,
|
||||
}
|
||||
|
||||
# handle invoke result
|
||||
generator = self._invoke_llm(
|
||||
node_data_model=self.node_data.model,
|
||||
|
|
@ -253,6 +244,17 @@ class LLMNode(BaseNode[LLMNodeData]):
|
|||
elif isinstance(event, LLMStructuredOutput):
|
||||
structured_output = event
|
||||
|
||||
process_data = {
|
||||
"model_mode": model_config.mode,
|
||||
"prompts": PromptMessageUtil.prompt_messages_to_prompt_for_saving(
|
||||
model_mode=model_config.mode, prompt_messages=prompt_messages
|
||||
),
|
||||
"usage": jsonable_encoder(usage),
|
||||
"finish_reason": finish_reason,
|
||||
"model_provider": model_config.provider,
|
||||
"model_name": model_config.model,
|
||||
}
|
||||
|
||||
outputs = {"text": result_text, "usage": jsonable_encoder(usage), "finish_reason": finish_reason}
|
||||
if structured_output:
|
||||
outputs["structured_output"] = structured_output.structured_output
|
||||
|
|
|
|||
|
|
@ -253,7 +253,12 @@ class ParameterExtractorNode(BaseNode):
|
|||
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
||||
inputs=inputs,
|
||||
process_data=process_data,
|
||||
outputs={"__is_success": 1 if not error else 0, "__reason": error, **result},
|
||||
outputs={
|
||||
"__is_success": 1 if not error else 0,
|
||||
"__reason": error,
|
||||
"__usage": jsonable_encoder(usage),
|
||||
**result,
|
||||
},
|
||||
metadata={
|
||||
WorkflowNodeExecutionMetadataKey.TOTAL_TOKENS: usage.total_tokens,
|
||||
WorkflowNodeExecutionMetadataKey.TOTAL_PRICE: usage.total_price,
|
||||
|
|
|
|||
|
|
@ -145,7 +145,11 @@ class QuestionClassifierNode(LLMNode):
|
|||
"model_provider": model_config.provider,
|
||||
"model_name": model_config.model,
|
||||
}
|
||||
outputs = {"class_name": category_name, "class_id": category_id}
|
||||
outputs = {
|
||||
"class_name": category_name,
|
||||
"class_id": category_id,
|
||||
"usage": jsonable_encoder(usage),
|
||||
}
|
||||
|
||||
return NodeRunResult(
|
||||
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
||||
|
|
|
|||
|
|
@ -480,6 +480,10 @@ export const LLM_OUTPUT_STRUCT: Var[] = [
|
|||
variable: 'text',
|
||||
type: VarType.string,
|
||||
},
|
||||
{
|
||||
variable: 'usage',
|
||||
type: VarType.object,
|
||||
},
|
||||
]
|
||||
|
||||
export const KNOWLEDGE_RETRIEVAL_OUTPUT_STRUCT: Var[] = [
|
||||
|
|
@ -501,6 +505,10 @@ export const QUESTION_CLASSIFIER_OUTPUT_STRUCT = [
|
|||
variable: 'class_name',
|
||||
type: VarType.string,
|
||||
},
|
||||
{
|
||||
variable: 'usage',
|
||||
type: VarType.object,
|
||||
},
|
||||
]
|
||||
|
||||
export const HTTP_REQUEST_OUTPUT_STRUCT: Var[] = [
|
||||
|
|
@ -546,6 +554,10 @@ export const PARAMETER_EXTRACTOR_COMMON_STRUCT: Var[] = [
|
|||
variable: '__reason',
|
||||
type: VarType.string,
|
||||
},
|
||||
{
|
||||
variable: '__usage',
|
||||
type: VarType.object,
|
||||
},
|
||||
]
|
||||
|
||||
export const FILE_STRUCT: Var[] = [
|
||||
|
|
|
|||
|
|
@ -282,6 +282,11 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
|
|||
type='string'
|
||||
description={t(`${i18nPrefix}.outputVars.output`)}
|
||||
/>
|
||||
<VarItem
|
||||
name='usage'
|
||||
type='object'
|
||||
description={t(`${i18nPrefix}.outputVars.usage`)}
|
||||
/>
|
||||
{inputs.structured_output_enabled && (
|
||||
<>
|
||||
<Split className='mt-3' />
|
||||
|
|
|
|||
|
|
@ -190,12 +190,17 @@ const Panel: FC<NodePanelProps<ParameterExtractorNodeType>> = ({
|
|||
<VarItem
|
||||
name='__is_success'
|
||||
type={VarType.number}
|
||||
description={t(`${i18nPrefix}.isSuccess`)}
|
||||
description={t(`${i18nPrefix}.outputVars.isSuccess`)}
|
||||
/>
|
||||
<VarItem
|
||||
name='__reason'
|
||||
type={VarType.string}
|
||||
description={t(`${i18nPrefix}.errorReason`)}
|
||||
description={t(`${i18nPrefix}.outputVars.errorReason`)}
|
||||
/>
|
||||
<VarItem
|
||||
name='__usage'
|
||||
type='object'
|
||||
description={t(`${i18nPrefix}.outputVars.usage`)}
|
||||
/>
|
||||
</>
|
||||
</OutputVars>
|
||||
|
|
|
|||
|
|
@ -129,6 +129,11 @@ const Panel: FC<NodePanelProps<QuestionClassifierNodeType>> = ({
|
|||
type='string'
|
||||
description={t(`${i18nPrefix}.outputVars.className`)}
|
||||
/>
|
||||
<VarItem
|
||||
name='usage'
|
||||
type='object'
|
||||
description={t(`${i18nPrefix}.outputVars.usage`)}
|
||||
/>
|
||||
</>
|
||||
</OutputVars>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Eingabevariablen',
|
||||
outputVars: {
|
||||
className: 'Klassennamen',
|
||||
usage: 'Nutzungsinformationen des Modells',
|
||||
},
|
||||
class: 'Klasse',
|
||||
classNamePlaceholder: 'Geben Sie Ihren Klassennamen ein',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Eingabevariable',
|
||||
outputVars: {
|
||||
isSuccess: 'Ist Erfolg. Bei Erfolg beträgt der Wert 1, bei Misserfolg beträgt der Wert 0.',
|
||||
errorReason: 'Fehlergrund',
|
||||
usage: 'Nutzungsinformationen des Modells',
|
||||
},
|
||||
extractParameters: 'Parameter extrahieren',
|
||||
importFromTool: 'Aus Tools importieren',
|
||||
addExtractParameter: 'Extraktionsparameter hinzufügen',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Erweiterte Einstellung',
|
||||
reasoningMode: 'Schlussfolgerungsmodus',
|
||||
reasoningModeTip: 'Sie können den entsprechenden Schlussfolgerungsmodus basierend auf der Fähigkeit des Modells wählen, auf Anweisungen zur Funktionsaufruf- oder Eingabeaufforderungen zu reagieren.',
|
||||
isSuccess: 'Ist Erfolg. Bei Erfolg beträgt der Wert 1, bei Misserfolg beträgt der Wert 0.',
|
||||
errorReason: 'Fehlergrund',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Iterationsknoten löschen?',
|
||||
|
|
|
|||
|
|
@ -673,6 +673,7 @@ const translation = {
|
|||
inputVars: 'Input Variables',
|
||||
outputVars: {
|
||||
className: 'Class Name',
|
||||
usage: 'Model Usage Information',
|
||||
},
|
||||
class: 'Class',
|
||||
classNamePlaceholder: 'Write your class name',
|
||||
|
|
@ -686,6 +687,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Input Variable',
|
||||
outputVars: {
|
||||
isSuccess: 'Is Success.On success the value is 1, on failure the value is 0.',
|
||||
errorReason: 'Error Reason',
|
||||
usage: 'Model Usage Information',
|
||||
},
|
||||
extractParameters: 'Extract Parameters',
|
||||
importFromTool: 'Import from tools',
|
||||
addExtractParameter: 'Add Extract Parameter',
|
||||
|
|
@ -705,8 +711,6 @@ const translation = {
|
|||
advancedSetting: 'Advanced Setting',
|
||||
reasoningMode: 'Reasoning Mode',
|
||||
reasoningModeTip: 'You can choose the appropriate reasoning mode based on the model\'s ability to respond to instructions for function calling or prompts.',
|
||||
isSuccess: 'Is Success.On success the value is 1, on failure the value is 0.',
|
||||
errorReason: 'Error Reason',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Delete Iteration Node?',
|
||||
|
|
|
|||
|
|
@ -667,6 +667,7 @@ const translation = {
|
|||
inputVars: 'Variables de entrada',
|
||||
outputVars: {
|
||||
className: 'Nombre de la clase',
|
||||
usage: 'Información de uso del modelo',
|
||||
},
|
||||
class: 'Clase',
|
||||
classNamePlaceholder: 'Escribe el nombre de tu clase',
|
||||
|
|
@ -680,6 +681,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Variable de entrada',
|
||||
outputVars: {
|
||||
isSuccess: 'Es éxito. En caso de éxito el valor es 1, en caso de fallo el valor es 0.',
|
||||
errorReason: 'Motivo del error',
|
||||
usage: 'Información de uso del modelo',
|
||||
},
|
||||
extractParameters: 'Extraer parámetros',
|
||||
importFromTool: 'Importar desde herramientas',
|
||||
addExtractParameter: 'Agregar parámetro de extracción',
|
||||
|
|
@ -699,8 +705,6 @@ const translation = {
|
|||
advancedSetting: 'Configuración avanzada',
|
||||
reasoningMode: 'Modo de razonamiento',
|
||||
reasoningModeTip: 'Puede elegir el modo de razonamiento apropiado basado en la capacidad del modelo para responder a instrucciones para llamadas de funciones o indicaciones.',
|
||||
isSuccess: 'Es éxito. En caso de éxito el valor es 1, en caso de fallo el valor es 0.',
|
||||
errorReason: 'Motivo del error',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: '¿Eliminar nodo de iteración?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'متغیرهای ورودی',
|
||||
outputVars: {
|
||||
className: 'نام کلاس',
|
||||
usage: 'اطلاعات استفاده از مدل',
|
||||
},
|
||||
class: 'کلاس',
|
||||
classNamePlaceholder: 'نام کلاس خود را بنویسید',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'متغیر ورودی',
|
||||
outputVars: {
|
||||
isSuccess: 'موفقیتآمیز است. در صورت موفقیت مقدار 1 و در صورت شکست مقدار 0 است.',
|
||||
errorReason: 'دلیل خطا',
|
||||
usage: 'اطلاعات استفاده از مدل',
|
||||
},
|
||||
extractParameters: 'استخراج پارامترها',
|
||||
importFromTool: 'وارد کردن از ابزارها',
|
||||
addExtractParameter: 'افزودن پارامتر استخراج شده',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'تنظیمات پیشرفته',
|
||||
reasoningMode: 'حالت استدلال',
|
||||
reasoningModeTip: 'میتوانید حالت استدلال مناسب را بر اساس توانایی مدل برای پاسخ به دستورات برای فراخوانی عملکردها یا پیشنهادات انتخاب کنید.',
|
||||
isSuccess: 'موفقیتآمیز است. در صورت موفقیت مقدار 1 و در صورت شکست مقدار 0 است.',
|
||||
errorReason: 'دلیل خطا',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'حذف نود تکرار؟',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Variables de saisie',
|
||||
outputVars: {
|
||||
className: 'Nom de la classe',
|
||||
usage: 'Informations sur l\'utilisation du modèle',
|
||||
},
|
||||
class: 'Classe',
|
||||
classNamePlaceholder: 'Écrivez le nom de votre classe',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Variable de saisie',
|
||||
outputVars: {
|
||||
isSuccess: 'Est réussi. En cas de succès, la valeur est 1, en cas d\'échec, la valeur est 0.',
|
||||
errorReason: 'Raison de l\'erreur',
|
||||
usage: 'Informations sur l\'utilisation du modèle',
|
||||
},
|
||||
extractParameters: 'Extraire des paramètres',
|
||||
importFromTool: 'Importer des outils',
|
||||
addExtractParameter: 'Ajouter un paramètre d\'extraction',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Paramètre avancé',
|
||||
reasoningMode: 'Mode de raisonnement',
|
||||
reasoningModeTip: 'Vous pouvez choisir le mode de raisonnement approprié en fonction de la capacité du modèle à répondre aux instructions pour les appels de fonction ou les invites.',
|
||||
isSuccess: 'Est réussi. En cas de succès, la valeur est 1, en cas d\'échec, la valeur est 0.',
|
||||
errorReason: 'Raison de l\'erreur',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Supprimer le nœud d\'itération?',
|
||||
|
|
|
|||
|
|
@ -685,6 +685,7 @@ const translation = {
|
|||
inputVars: 'इनपुट वेरिएबल्स',
|
||||
outputVars: {
|
||||
className: 'क्लास नाम',
|
||||
usage: 'मॉडल उपयोग जानकारी',
|
||||
},
|
||||
class: 'क्लास',
|
||||
classNamePlaceholder: 'अपना क्लास नाम लिखें',
|
||||
|
|
@ -699,6 +700,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'इनपुट वेरिएबल',
|
||||
outputVars: {
|
||||
isSuccess: 'सफलता है। सफलता पर मान 1 है, असफलता पर मान 0 है।',
|
||||
errorReason: 'त्रुटि का कारण',
|
||||
usage: 'मॉडल उपयोग जानकारी',
|
||||
},
|
||||
extractParameters: 'पैरामीटर्स निकालें',
|
||||
importFromTool: 'उपकरणों से आयात करें',
|
||||
addExtractParameter: 'एक्सट्रेक्ट पैरामीटर जोड़ें',
|
||||
|
|
@ -721,8 +727,6 @@ const translation = {
|
|||
reasoningMode: 'रीज़निंग मोड',
|
||||
reasoningModeTip:
|
||||
'फ़ंक्शन कॉलिंग या प्रॉम्प्ट्स के लिए निर्देशों का जवाब देने की मॉडल की क्षमता के आधार पर उपयुक्त रीज़निंग मोड चुन सकते हैं।',
|
||||
isSuccess: 'सफलता है। सफलता पर मान 1 है, असफलता पर मान 0 है।',
|
||||
errorReason: 'त्रुटि का कारण',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'इटरेशन नोड हटाएं?',
|
||||
|
|
|
|||
|
|
@ -688,6 +688,7 @@ const translation = {
|
|||
inputVars: 'Variabili di Input',
|
||||
outputVars: {
|
||||
className: 'Nome Classe',
|
||||
usage: 'Informazioni sull\'utilizzo del modello',
|
||||
},
|
||||
class: 'Classe',
|
||||
classNamePlaceholder: 'Scrivi il nome della tua classe',
|
||||
|
|
@ -702,6 +703,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Variabile di Input',
|
||||
outputVars: {
|
||||
isSuccess: 'È successo. In caso di successo il valore è 1, in caso di fallimento il valore è 0.',
|
||||
errorReason: 'Motivo dell\'errore',
|
||||
usage: 'Informazioni sull\'utilizzo del modello',
|
||||
},
|
||||
extractParameters: 'Estrai Parametri',
|
||||
importFromTool: 'Importa dagli strumenti',
|
||||
addExtractParameter: 'Aggiungi Parametro Estratto',
|
||||
|
|
@ -724,9 +730,6 @@ const translation = {
|
|||
reasoningMode: 'Modalità di ragionamento',
|
||||
reasoningModeTip:
|
||||
'Puoi scegliere la modalità di ragionamento appropriata in base alla capacità del modello di rispondere alle istruzioni per la chiamata delle funzioni o i prompt.',
|
||||
isSuccess:
|
||||
'È successo. In caso di successo il valore è 1, in caso di fallimento il valore è 0.',
|
||||
errorReason: 'Motivo dell\'errore',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Eliminare Nodo Iterazione?',
|
||||
|
|
|
|||
|
|
@ -676,6 +676,7 @@ const translation = {
|
|||
inputVars: '入力変数',
|
||||
outputVars: {
|
||||
className: 'クラス名',
|
||||
usage: 'モデル使用量',
|
||||
},
|
||||
class: 'クラス',
|
||||
classNamePlaceholder: 'クラス名を入力してください',
|
||||
|
|
@ -689,6 +690,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: '入力変数',
|
||||
outputVars: {
|
||||
isSuccess: '成功。成功した場合の値は 1、失敗した場合の値は 0 です。',
|
||||
errorReason: 'エラーの理由',
|
||||
usage: 'モデル使用量',
|
||||
},
|
||||
extractParameters: 'パラメーターを抽出',
|
||||
importFromTool: 'ツールからインポート',
|
||||
addExtractParameter: '抽出パラメーターを追加',
|
||||
|
|
@ -708,8 +714,6 @@ const translation = {
|
|||
advancedSetting: '高度な設定',
|
||||
reasoningMode: '推論モード',
|
||||
reasoningModeTip: '関数呼び出しやプロンプトの指示に応答するモデルの能力に基づいて、適切な推論モードを選択できます。',
|
||||
isSuccess: '成功。成功した場合の値は 1、失敗した場合の値は 0 です。',
|
||||
errorReason: 'エラーの理由',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'イテレーションノードを削除しますか?',
|
||||
|
|
|
|||
|
|
@ -701,6 +701,7 @@ const translation = {
|
|||
inputVars: '입력 변수',
|
||||
outputVars: {
|
||||
className: '클래스 이름',
|
||||
usage: '모델 사용 정보',
|
||||
},
|
||||
class: '클래스',
|
||||
classNamePlaceholder: '클래스 이름을 작성하세요',
|
||||
|
|
@ -715,6 +716,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: '입력 변수',
|
||||
outputVars: {
|
||||
isSuccess: '성공 여부. 성공 시 값은 1 이고, 실패 시 값은 0 입니다.',
|
||||
errorReason: '오류 원인',
|
||||
usage: '모델 사용 정보',
|
||||
},
|
||||
extractParameters: '매개변수 추출',
|
||||
importFromTool: '도구에서 가져오기',
|
||||
addExtractParameter: '추출 매개변수 추가',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Zmienne wejściowe',
|
||||
outputVars: {
|
||||
className: 'Nazwa klasy',
|
||||
usage: 'Informacje o użyciu modelu',
|
||||
},
|
||||
class: 'Klasa',
|
||||
classNamePlaceholder: 'Napisz nazwę swojej klasy',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Zmienna wejściowa',
|
||||
outputVars: {
|
||||
isSuccess: 'Czy się udało. W przypadku sukcesu wartość wynosi 1, w przypadku niepowodzenia wartość wynosi 0.',
|
||||
errorReason: 'Powód błędu',
|
||||
usage: 'Informacje o użyciu modelu',
|
||||
},
|
||||
extractParameters: 'Wyodrębnij parametry',
|
||||
importFromTool: 'Importuj z narzędzi',
|
||||
addExtractParameter: 'Dodaj parametr wyodrębniania',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Zaawansowane ustawienia',
|
||||
reasoningMode: 'Tryb wnioskowania',
|
||||
reasoningModeTip: 'Możesz wybrać odpowiedni tryb wnioskowania w zależności od zdolności modelu do reagowania na instrukcje dotyczące wywoływania funkcji lub zapytań.',
|
||||
isSuccess: 'Czy się udało. W przypadku sukcesu wartość wynosi 1, w przypadku niepowodzenia wartość wynosi 0.',
|
||||
errorReason: 'Powód błędu',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Usunąć węzeł iteracji?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Variáveis de entrada',
|
||||
outputVars: {
|
||||
className: 'Nome da classe',
|
||||
usage: 'Informações de uso do modelo',
|
||||
},
|
||||
class: 'Classe',
|
||||
classNamePlaceholder: 'Escreva o nome da sua classe',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Variável de entrada',
|
||||
outputVars: {
|
||||
isSuccess: 'É sucesso. Em caso de sucesso, o valor é 1, em caso de falha, o valor é 0.',
|
||||
errorReason: 'Motivo do erro',
|
||||
usage: 'Informações de uso do modelo',
|
||||
},
|
||||
extractParameters: 'Extrair parâmetros',
|
||||
importFromTool: 'Importar das ferramentas',
|
||||
addExtractParameter: 'Adicionar parâmetro de extração',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Configuração avançada',
|
||||
reasoningMode: 'Modo de raciocínio',
|
||||
reasoningModeTip: 'Você pode escolher o modo de raciocínio apropriado com base na capacidade do modelo de responder a instruções para chamadas de função ou prompts.',
|
||||
isSuccess: 'É sucesso. Em caso de sucesso, o valor é 1, em caso de falha, o valor é 0.',
|
||||
errorReason: 'Motivo do erro',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Excluir nó de iteração?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Variabile de intrare',
|
||||
outputVars: {
|
||||
className: 'Nume clasă',
|
||||
usage: 'Informații de utilizare a modelului',
|
||||
},
|
||||
class: 'Clasă',
|
||||
classNamePlaceholder: 'Scrieți numele clasei',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Variabilă de intrare',
|
||||
outputVars: {
|
||||
isSuccess: 'Este succes. În caz de succes valoarea este 1, în caz de eșec valoarea este 0.',
|
||||
errorReason: 'Motivul erorii',
|
||||
usage: 'Informații de utilizare a modelului',
|
||||
},
|
||||
extractParameters: 'Extrageți parametrii',
|
||||
importFromTool: 'Importă din instrumente',
|
||||
addExtractParameter: 'Adăugați parametru de extragere',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Setare avansată',
|
||||
reasoningMode: 'Mod de raționament',
|
||||
reasoningModeTip: 'Puteți alege modul de raționament potrivit în funcție de capacitatea modelului de a răspunde la instrucțiuni pentru apelarea funcțiilor sau prompturi.',
|
||||
isSuccess: 'Este succes. În caz de succes valoarea este 1, în caz de eșec valoarea este 0.',
|
||||
errorReason: 'Motivul erorii',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Ștergeți nodul de iterație?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Входные переменные',
|
||||
outputVars: {
|
||||
className: 'Имя класса',
|
||||
usage: 'Информация об использовании модели',
|
||||
},
|
||||
class: 'Класс',
|
||||
classNamePlaceholder: 'Введите имя вашего класса',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Входная переменная',
|
||||
outputVars: {
|
||||
isSuccess: 'Успешно. В случае успеха значение равно 1, в случае сбоя - 0.',
|
||||
errorReason: 'Причина ошибки',
|
||||
usage: 'Информация об использовании модели',
|
||||
},
|
||||
extractParameters: 'Извлечь параметры',
|
||||
importFromTool: 'Импортировать из инструментов',
|
||||
addExtractParameter: 'Добавить параметр для извлечения',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Расширенные настройки',
|
||||
reasoningMode: 'Режим рассуждения',
|
||||
reasoningModeTip: 'Вы можете выбрать соответствующий режим рассуждения, основываясь на способности модели реагировать на инструкции для вызова функций или подсказки.',
|
||||
isSuccess: 'Успешно. В случае успеха значение равно 1, в случае сбоя - 0.',
|
||||
errorReason: 'Причина ошибки',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Удалить узел итерации?',
|
||||
|
|
|
|||
|
|
@ -667,6 +667,7 @@ const translation = {
|
|||
questionClassifiers: {
|
||||
outputVars: {
|
||||
className: 'Ime razreda',
|
||||
usage: 'Informacije o uporabi modela',
|
||||
},
|
||||
instruction: 'Navodilo',
|
||||
addClass: 'Dodaj razred',
|
||||
|
|
@ -692,16 +693,19 @@ const translation = {
|
|||
requiredContent: 'Zahtevano se uporablja le kot referenca za sklepanje modela in ne kot obvezno validacijo izhodnih parametrov.',
|
||||
},
|
||||
extractParameters: 'Izvleči parametre',
|
||||
errorReason: 'Razlog za napako',
|
||||
instruction: 'Navodilo',
|
||||
instructionTip: 'Vnesite dodatna navodila, da pomagate izvleku parametrov razumeti, kako izvleči parametre.',
|
||||
reasoningMode: 'Način razmišljanja',
|
||||
isSuccess: 'Ali je uspeh. Na uspehu je vrednost 1, na neuspehu je vrednost 0.',
|
||||
importFromTool: 'Uvoz iz orodij',
|
||||
advancedSetting: 'Napredno nastavitev',
|
||||
addExtractParameter: 'Dodaj parameter za ekstrakcijo',
|
||||
extractParametersNotSet: 'Parameterji za ekstrakcijo niso nastavljeni',
|
||||
inputVar: 'Vhodna spremenljivka',
|
||||
outputVars: {
|
||||
isSuccess: 'Ali je uspeh. Na uspehu je vrednost 1, na neuspehu je vrednost 0.',
|
||||
errorReason: 'Razlog za napako',
|
||||
usage: 'Informacije o uporabi modela',
|
||||
},
|
||||
reasoningModeTip: 'Lahko izberete ustrezen način razmišljanja glede na sposobnost modela, da se odzove na navodila za klic funkcij ali pozive.',
|
||||
},
|
||||
iteration: {
|
||||
|
|
|
|||
|
|
@ -668,6 +668,7 @@ const translation = {
|
|||
inputVars: 'ตัวแปรอินพุต',
|
||||
outputVars: {
|
||||
className: 'ชื่อคลาส',
|
||||
usage: 'ข้อมูลการใช้งานรุ่น',
|
||||
},
|
||||
class: 'ประเภท',
|
||||
classNamePlaceholder: 'เขียนชื่อชั้นเรียนของคุณ',
|
||||
|
|
@ -681,6 +682,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'ตัวแปรอินพุต',
|
||||
outputVars: {
|
||||
isSuccess: 'คือ Success เมื่อสําเร็จค่าคือ 1 เมื่อล้มเหลวค่าเป็น 0',
|
||||
errorReason: 'สาเหตุข้อผิดพลาด',
|
||||
usage: 'ข้อมูลการใช้งานรุ่น',
|
||||
},
|
||||
extractParameters: 'แยกพารามิเตอร์',
|
||||
importFromTool: 'นําเข้าจากเครื่องมือ',
|
||||
addExtractParameter: 'เพิ่มพารามิเตอร์การแยกข้อมูล',
|
||||
|
|
@ -700,8 +706,6 @@ const translation = {
|
|||
advancedSetting: 'การตั้งค่าขั้นสูง',
|
||||
reasoningMode: 'โหมดการให้เหตุผล',
|
||||
reasoningModeTip: 'คุณสามารถเลือกโหมดการให้เหตุผลที่เหมาะสมตามความสามารถของโมเดลในการตอบสนองต่อคําแนะนําสําหรับการเรียกใช้ฟังก์ชันหรือข้อความแจ้ง',
|
||||
isSuccess: 'คือ Success เมื่อสําเร็จค่าคือ 1 เมื่อล้มเหลวค่าเป็น 0',
|
||||
errorReason: 'สาเหตุข้อผิดพลาด',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'ลบโหนดการทําซ้ํา?',
|
||||
|
|
|
|||
|
|
@ -670,6 +670,7 @@ const translation = {
|
|||
inputVars: 'Giriş Değişkenleri',
|
||||
outputVars: {
|
||||
className: 'Sınıf Adı',
|
||||
usage: 'Model Kullanım Bilgileri',
|
||||
},
|
||||
class: 'Sınıf',
|
||||
classNamePlaceholder: 'Sınıf adınızı yazın',
|
||||
|
|
@ -683,6 +684,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Giriş Değişkeni',
|
||||
outputVars: {
|
||||
isSuccess: 'Başarılı mı. Başarılı olduğunda değer 1, başarısız olduğunda değer 0\'dır.',
|
||||
errorReason: 'Hata Nedeni',
|
||||
usage: 'Model Kullanım Bilgileri',
|
||||
},
|
||||
extractParameters: 'Parametreleri Çıkar',
|
||||
importFromTool: 'Araçlardan içe aktar',
|
||||
addExtractParameter: 'Çıkarma Parametresi Ekle',
|
||||
|
|
@ -702,8 +708,6 @@ const translation = {
|
|||
advancedSetting: 'Gelişmiş Ayarlar',
|
||||
reasoningMode: 'Akıl Yürütme Modu',
|
||||
reasoningModeTip: 'Modelin fonksiyon çağırma veya istemler için talimatlara yanıt verme yeteneğine bağlı olarak uygun akıl yürütme modunu seçebilirsiniz.',
|
||||
isSuccess: 'Başarılı mı. Başarılı olduğunda değer 1, başarısız olduğunda değer 0\'dır.',
|
||||
errorReason: 'Hata Nedeni',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Yineleme Düğümünü Sil?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Вхідні змінні',
|
||||
outputVars: {
|
||||
className: 'Назва класу',
|
||||
usage: 'Інформація про використання моделі',
|
||||
},
|
||||
class: 'Клас',
|
||||
classNamePlaceholder: 'Напишіть назву вашого класу',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Вхідна змінна',
|
||||
outputVars: {
|
||||
isSuccess: 'Є успіх. У разі успіху значення 1, у разі невдачі значення 0.',
|
||||
errorReason: 'Причина помилки',
|
||||
usage: 'Інформація про використання моделі',
|
||||
},
|
||||
extractParameters: 'Витягти параметри',
|
||||
importFromTool: 'Імпорт з інструментів',
|
||||
addExtractParameter: 'Додати параметр витягування',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Розширене налаштування',
|
||||
reasoningMode: 'Режим інференції',
|
||||
reasoningModeTip: 'Ви можете вибрати відповідний режим інференції залежно від здатності моделі реагувати на інструкції щодо викликів функцій або запитів.',
|
||||
isSuccess: 'Є успіх. У разі успіху значення 1, у разі невдачі значення 0.',
|
||||
errorReason: 'Причина помилки',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Видалити вузол ітерації?',
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ const translation = {
|
|||
inputVars: 'Biến đầu vào',
|
||||
outputVars: {
|
||||
className: 'Tên lớp',
|
||||
usage: 'Thông tin sử dụng mô hình',
|
||||
},
|
||||
class: 'Lớp',
|
||||
classNamePlaceholder: 'Viết tên lớp của bạn',
|
||||
|
|
@ -682,6 +683,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: 'Biến đầu vào',
|
||||
outputVars: {
|
||||
isSuccess: 'Thành công. Khi thành công giá trị là 1, khi thất bại giá trị là 0.',
|
||||
errorReason: 'Lý do lỗi',
|
||||
usage: 'Thông tin sử dụng mô hình',
|
||||
},
|
||||
extractParameters: 'Trích xuất tham số',
|
||||
importFromTool: 'Nhập từ công cụ',
|
||||
addExtractParameter: 'Thêm tham số trích xuất',
|
||||
|
|
@ -701,8 +707,6 @@ const translation = {
|
|||
advancedSetting: 'Cài đặt nâng cao',
|
||||
reasoningMode: 'Chế độ suy luận',
|
||||
reasoningModeTip: 'Bạn có thể chọn chế độ suy luận phù hợp dựa trên khả năng của mô hình để phản hồi các hướng dẫn về việc gọi hàm hoặc prompt.',
|
||||
isSuccess: 'Thành công. Khi thành công giá trị là 1, khi thất bại giá trị là 0.',
|
||||
errorReason: 'Lý do lỗi',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: 'Xóa nút lặp?',
|
||||
|
|
|
|||
|
|
@ -674,6 +674,7 @@ const translation = {
|
|||
inputVars: '输入变量',
|
||||
outputVars: {
|
||||
className: '分类名称',
|
||||
usage: '模型用量信息',
|
||||
},
|
||||
class: '分类',
|
||||
classNamePlaceholder: '输入你的分类名称',
|
||||
|
|
@ -687,6 +688,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: '输入变量',
|
||||
outputVars: {
|
||||
isSuccess: '是否成功。成功时值为 1,失败时值为 0。',
|
||||
errorReason: '错误原因',
|
||||
usage: '模型用量信息',
|
||||
},
|
||||
extractParameters: '提取参数',
|
||||
importFromTool: '从工具导入',
|
||||
addExtractParameter: '添加提取参数',
|
||||
|
|
@ -706,8 +712,6 @@ const translation = {
|
|||
advancedSetting: '高级设置',
|
||||
reasoningMode: '推理模式',
|
||||
reasoningModeTip: '你可以根据模型对于 Function calling 或 Prompt 的指令响应能力选择合适的推理模式',
|
||||
isSuccess: '是否成功。成功时值为 1,失败时值为 0。',
|
||||
errorReason: '错误原因',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: '删除迭代节点?',
|
||||
|
|
|
|||
|
|
@ -670,6 +670,7 @@ const translation = {
|
|||
inputVars: '輸入變量',
|
||||
outputVars: {
|
||||
className: '分類名稱',
|
||||
usage: '模型用量信息',
|
||||
},
|
||||
class: '分類',
|
||||
classNamePlaceholder: '輸入你的分類名稱',
|
||||
|
|
@ -683,6 +684,11 @@ const translation = {
|
|||
},
|
||||
parameterExtractor: {
|
||||
inputVar: '輸入變量',
|
||||
outputVars: {
|
||||
isSuccess: '是否成功。成功時值為 1,失敗時值為 0。',
|
||||
errorReason: '錯誤原因',
|
||||
usage: '模型用量信息',
|
||||
},
|
||||
extractParameters: '提取參數',
|
||||
importFromTool: '從工具導入',
|
||||
addExtractParameter: '添加提取參數',
|
||||
|
|
@ -702,8 +708,6 @@ const translation = {
|
|||
advancedSetting: '高級設置',
|
||||
reasoningMode: '推理模式',
|
||||
reasoningModeTip: '你可以根據模型對於 Function calling 或 Prompt 的指令響應能力選擇合適的推理模式',
|
||||
isSuccess: '是否成功。成功時值為 1,失敗時值為 0。',
|
||||
errorReason: '錯誤原因',
|
||||
},
|
||||
iteration: {
|
||||
deleteTitle: '刪除迭代節點?',
|
||||
|
|
|
|||
Loading…
Reference in New Issue