mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-07-07 13:37:58 +02:00
Flask API
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
run:
|
||||
generations: 1
|
||||
|
||||
plugins:
|
||||
probe_spec: test.Test
|
||||
@@ -0,0 +1,5 @@
|
||||
run:
|
||||
generations: 1
|
||||
|
||||
plugins:
|
||||
probe_spec: promptinject.HijackHateHumansMini
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"rest": {
|
||||
"RestGenerator": {
|
||||
"name": "Microsoft ONNX Phi-3 LLM/GenAI REST API Service (RAG)",
|
||||
"uri": "http://localhost:9999/api/rag_conversations",
|
||||
"method": "post",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
"req_template_json_object": {
|
||||
"prompt": "$INPUT"
|
||||
},
|
||||
"response_json": true,
|
||||
"response_json_field": "response",
|
||||
"request_timeout": 600,
|
||||
"verify_ssl": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"rest": {
|
||||
"RestGenerator": {
|
||||
"name": "Microsoft ONNX Phi-3 LLM/GenAI REST API Service",
|
||||
"uri": "http://localhost:9999/api/conversations",
|
||||
"method": "post",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
"req_template_json_object": {
|
||||
"prompt": "$INPUT"
|
||||
},
|
||||
"response_json": true,
|
||||
"response_json_field": "response",
|
||||
"request_timeout": 600,
|
||||
"verify_ssl": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user