sync: mnogo

This commit is contained in:
2025-10-03 21:55:24 +03:00
parent 2abfbb4b1a
commit 86182c0808
22 changed files with 4462 additions and 1469 deletions

View File

@@ -0,0 +1,40 @@
{
"WAS_ERROR__n2": true,
"CYCLEINDEX__n2": 0,
"snapshot": {
"incoming": {
"method": "POST",
"url": "http://localhost/test",
"path": "/test",
"query": "",
"headers": {
"x": "X-HEADER"
},
"json": {}
},
"params": {
"temperature": 0.25
},
"model": "gpt-x",
"vendor_format": "openai",
"system": "",
"OUT": {
"n2": {
"result": {
"error": "Cancelled by user (abort)"
},
"response_text": "",
"vars": {
"WAS_ERROR__n2": true,
"CYCLEINDEX__n2": 0
}
}
},
"OUT_TEXT": {
"n2": "Cancelled by user (abort)"
},
"LAST_NODE": "n2",
"OUT2": "Cancelled by user (abort)",
"EXEC_TRACE": "n2(ProviderCall)"
}
}

View File

@@ -0,0 +1,40 @@
{
"WAS_ERROR__n2": false,
"CYCLEINDEX__n2": 0,
"snapshot": {
"incoming": {
"method": "POST",
"url": "http://localhost/test",
"path": "/test",
"query": "",
"headers": {
"x": "X-HEADER"
},
"json": {}
},
"params": {
"temperature": 0.25
},
"model": "gpt-x",
"vendor_format": "openai",
"system": "",
"OUT": {
"n2": {
"result": {
"echo": {}
},
"response_text": "",
"vars": {
"WAS_ERROR__n2": false,
"CYCLEINDEX__n2": 0
}
}
},
"OUT_TEXT": {
"n2": ""
},
"LAST_NODE": "n2",
"OUT2": "",
"EXEC_TRACE": "n2(ProviderCall)"
}
}

View File

@@ -19,21 +19,36 @@
"OUT": {
"n1": {
"result": {
"error": {
"message": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
"echo": {
"url": "https://api.openai.com/v1/chat/completions",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer TEST"
},
"payload": {
"model": "gpt-x",
"messages": [
{
"role": "system",
"content": "You are test"
},
{
"role": "user",
"content": "Say Привет"
}
],
"temperature": 0.25
}
}
},
"response_text": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys."
"response_text": "https://api.openai.com/v1/chat/completions"
}
},
"OUT_TEXT": {
"n1": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys."
"n1": "https://api.openai.com/v1/chat/completions"
},
"LAST_NODE": "n1",
"OUT1": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys.",
"OUT1": "https://api.openai.com/v1/chat/completions",
"EXEC_TRACE": "n1(ProviderCall)"
}
}

View File

@@ -16,29 +16,6 @@
"B": "bar"
}
},
"n2": {
"result": {
"id": "ret_mock_123",
"object": "chat.completion",
"model": "gpt-x",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "foo"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 1,
"total_tokens": 0
}
},
"response_text": "foo"
},
"n3": {
"result": {
"id": "ret_mock_123",
@@ -61,17 +38,40 @@
}
},
"response_text": "bar"
},
"n2": {
"result": {
"id": "ret_mock_123",
"object": "chat.completion",
"model": "gpt-x",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "foo"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 1,
"total_tokens": 0
}
},
"response_text": "foo"
}
},
"OUT_TEXT": {
"n1": "foo",
"n2": "foo",
"n3": "bar"
"n3": "bar",
"n2": "foo"
},
"LAST_NODE": "n2",
"LAST_NODE": "n3",
"OUT1": "foo",
"OUT2": "foo",
"OUT3": "bar",
"EXEC_TRACE": "n1(SetVars) -> n2(Return) -> n3(Return)"
"OUT2": "foo",
"EXEC_TRACE": "n1(SetVars) -> n3(Return) -> n2(Return)"
}
}

View File

@@ -10,21 +10,27 @@
"OUT": {
"n1": {
"result": {
"error": {
"message": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
"echo": {
"url": "https://api.openai.com/v1/chat/completions",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer TEST"
},
"payload": {
"model": "gpt-x",
"messages": [],
"temperature": 0.1
}
}
},
"response_text": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys."
"response_text": "https://api.openai.com/v1/chat/completions"
}
},
"OUT_TEXT": {
"n1": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys."
"n1": "https://api.openai.com/v1/chat/completions"
},
"LAST_NODE": "n1",
"OUT1": "Incorrect API key provided: TEST. You can find your API key at https://platform.openai.com/account/api-keys.",
"OUT1": "https://api.openai.com/v1/chat/completions",
"EXEC_TRACE": "n1(ProviderCall)"
}
}

File diff suppressed because one or more lines are too long