summaryrefslogtreecommitdiff
path: root/examples/server/tests/features/security.feature
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/tests/features/security.feature')
-rw-r--r--examples/server/tests/features/security.feature16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/server/tests/features/security.feature b/examples/server/tests/features/security.feature
index 1d6aa40e..eb82e7ac 100644
--- a/examples/server/tests/features/security.feature
+++ b/examples/server/tests/features/security.feature
@@ -37,6 +37,22 @@ Feature: Security
| llama.cpp | no |
| hackme | raised |
+ Scenario Outline: OAI Compatibility (invalid response formats)
+ Given a system prompt test
+ And a user prompt test
+ And a response format <response_format>
+ And a model test
+ And 2 max tokens to predict
+ And streaming is disabled
+ Given an OAI compatible chat completions request with raised api error
+
+ Examples: Prompts
+ | response_format |
+ | {"type": "sound"} |
+ | {"type": "json_object", "schema": 123} |
+ | {"type": "json_object", "schema": {"type": 123}} |
+ | {"type": "json_object", "schema": {"type": "hiccup"}} |
+
Scenario Outline: CORS Options
Given a user api key llama.cpp