mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Update Arch-Guard and corresponding e2e test
This commit is contained in:
parent
6dc92fbbc1
commit
2fd8a5a06d
2 changed files with 15 additions and 5 deletions
|
|
@ -1,7 +1,8 @@
|
|||
@model_server_endpoint = http://localhost:51000
|
||||
@archfc_endpoint = https://api.fc.archgw.com
|
||||
|
||||
### talk to model_server for completion
|
||||
|
||||
# talk to function calling endpoint
|
||||
POST {{model_server_endpoint}}/function_calling HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
|
|
@ -41,7 +42,6 @@ Content-Type: application/json
|
|||
}
|
||||
|
||||
|
||||
|
||||
# talk to Arch-Function directly for completion
|
||||
POST {{archfc_endpoint}}/v1/chat/completions HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
|
@ -59,3 +59,13 @@ Content-Type: application/json
|
|||
"continue_final_message": true,
|
||||
"add_generation_prompt": false
|
||||
}
|
||||
|
||||
|
||||
# talk to guardrails endpoint
|
||||
POST {{model_server_endpoint}}/guardrails HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"input": "how is the weather in seattle for next 10 days",
|
||||
"task": "jailbreak"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue