prompt-manager: Claude system as content blocks; avoid empty 'system'; PROMPT uses pm.system (blocks) or system_text; tests green
This commit is contained in:
@@ -16,29 +16,6 @@
|
||||
"B": "bar"
|
||||
}
|
||||
},
|
||||
"n3": {
|
||||
"result": {
|
||||
"id": "ret_mock_123",
|
||||
"object": "chat.completion",
|
||||
"model": "gpt-x",
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": "bar"
|
||||
},
|
||||
"finish_reason": "stop"
|
||||
}
|
||||
],
|
||||
"usage": {
|
||||
"prompt_tokens": 0,
|
||||
"completion_tokens": 1,
|
||||
"total_tokens": 0
|
||||
}
|
||||
},
|
||||
"response_text": "bar"
|
||||
},
|
||||
"n2": {
|
||||
"result": {
|
||||
"id": "ret_mock_123",
|
||||
@@ -61,17 +38,40 @@
|
||||
}
|
||||
},
|
||||
"response_text": "foo"
|
||||
},
|
||||
"n3": {
|
||||
"result": {
|
||||
"id": "ret_mock_123",
|
||||
"object": "chat.completion",
|
||||
"model": "gpt-x",
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": "bar"
|
||||
},
|
||||
"finish_reason": "stop"
|
||||
}
|
||||
],
|
||||
"usage": {
|
||||
"prompt_tokens": 0,
|
||||
"completion_tokens": 1,
|
||||
"total_tokens": 0
|
||||
}
|
||||
},
|
||||
"response_text": "bar"
|
||||
}
|
||||
},
|
||||
"OUT_TEXT": {
|
||||
"n1": "foo",
|
||||
"n3": "bar",
|
||||
"n2": "foo"
|
||||
"n2": "foo",
|
||||
"n3": "bar"
|
||||
},
|
||||
"LAST_NODE": "n3",
|
||||
"LAST_NODE": "n2",
|
||||
"OUT1": "foo",
|
||||
"OUT3": "bar",
|
||||
"OUT2": "foo",
|
||||
"EXEC_TRACE": "n1(SetVars) -> n3(Return) -> n2(Return)"
|
||||
"OUT3": "bar",
|
||||
"EXEC_TRACE": "n1(SetVars) -> n2(Return) -> n3(Return)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user